From ac4ddbe23dd9597ebf974d4c6a8f623ec5ce2adf Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Tue, 8 Aug 2023 22:50:30 +0200 Subject: [PATCH] webapp: Fix lint error --- webapp/src/components/BootstrapAlert.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/BootstrapAlert.vue b/webapp/src/components/BootstrapAlert.vue index b6b447d1..df96fb62 100644 --- a/webapp/src/components/BootstrapAlert.vue +++ b/webapp/src/components/BootstrapAlert.vue @@ -52,7 +52,11 @@ export default defineComponent({ _countDownTimeout = undefined; }; - const countDown = ref(parseCountDown(props.modelValue)); + var countDown = ref(); + watch(() => props.modelValue, () => { + countDown.value = parseCountDown(props.modelValue); + }); + const isAlertVisible = computed(() => props.modelValue || props.show); onBeforeUnmount(() => {