-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update composer, autoremove flash on live actions, fix archive check
- Loading branch information
1 parent
25182be
commit 2ae6508
Showing
8 changed files
with
172 additions
and
201 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Controller } from '@hotwired/stimulus'; | ||
import { getComponent } from '@symfony/ux-live-component'; | ||
|
||
/* | ||
* This is an example Stimulus controller! | ||
* | ||
* Any element with a data-controller="hello" attribute will cause | ||
* this controller to be executed. The name "hello" comes from the filename: | ||
* hello_controller.js -> "hello" | ||
* | ||
* Delete this file or adapt it for your use! | ||
*/ | ||
|
||
export default class extends Controller { | ||
async initialize() { | ||
this.component = await getComponent(this.element); | ||
|
||
this.component.on('render:finished', (component) => { | ||
|
||
if(document.querySelector('.alert-remove')) { | ||
setTimeout(function () { | ||
document.querySelector('.alert-remove').remove(); | ||
}, 1000); | ||
} | ||
|
||
}); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.