Sha256: 85c5ad376eca447b91144ff5ef4be96a552882b11cbcb6f85dbfec3d52125da9
Contents?: true
Size: 399 Bytes
Versions: 103
Compression:
Stored size: 399 Bytes
Contents
import { Controller } from '@hotwired/stimulus' export default class extends Controller { refresh() { const frame = this.context.scope.element.closest('turbo-frame') this.element.querySelector('svg').classList.add('animate-spin') if (frame) { frame.reload() } else { console.error( `Element with ID '${this.turboFrameIdValue}' not found.`, ) } } }
Version data entries
103 entries across 103 versions & 1 rubygems