diff --git a/assets/controllers/monitor_button_controller.js b/assets/controllers/monitor_button_controller.js index d07e547..f34dcb3 100644 --- a/assets/controllers/monitor_button_controller.js +++ b/assets/controllers/monitor_button_controller.js @@ -8,7 +8,7 @@ import { Controller } from '@hotwired/stimulus'; /* stimulusFetch: 'lazy' */ export default class extends Controller { static targets = ['button', 'options'] - static outlets = ['result-filter'] + static outlets = ['result-filter', 'dialog'] static values = { tmdbId: String, imdbId: String, @@ -54,6 +54,9 @@ export default class extends Controller { title: this.titleValue, monitorType: 'tvshows', }); + if (this.hasDialogOutlet) { + this.dialogOutlet.close(); + } } async monitorSeason() { diff --git a/compose.yml b/compose.yml index 09a7e65..6cb77bc 100755 --- a/compose.yml +++ b/compose.yml @@ -40,7 +40,7 @@ services: tty: true environment: TZ: America/Chicago - command: php /app/bin/console messenger:consume media_cache -vv --time-limit=3600 + command: php /app/bin/console messenger:consume async -vv --time-limit=3600 scheduler: diff --git a/templates/components/Modal.html.twig b/templates/components/Modal.html.twig index 91e6ea9..8c1ee2e 100644 --- a/templates/components/Modal.html.twig +++ b/templates/components/Modal.html.twig @@ -1,4 +1,4 @@ -