From 17288a4c0228a90e46a765b75db03f11059bdac0 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Wed, 31 Jan 2024 14:49:44 -0800 Subject: [PATCH] refactor: removing ignored release uncheck ignoreThisRelease --- web/components/UpdateOs/CheckUpdateResponseModal.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/components/UpdateOs/CheckUpdateResponseModal.vue b/web/components/UpdateOs/CheckUpdateResponseModal.vue index 58332b525..f71aca747 100644 --- a/web/components/UpdateOs/CheckUpdateResponseModal.vue +++ b/web/components/UpdateOs/CheckUpdateResponseModal.vue @@ -53,9 +53,13 @@ const { outputDateTimeFormatted: formattedRegExp, } = useDateTimeHelper(dateTimeFormat.value, props.t, true, regExp.value); -// @todo - if we don't get a sha256 we need to auth -// @todo - when true change primary action button to be close and hide secondary button const ignoreThisRelease = ref(false); +// if we had a release ignored and now we don't set ignoreThisRelease to false +watch(updateOsIgnoredReleases, (newVal, oldVal) => { + if (oldVal.length > 0 && newVal.length === 0) { + ignoreThisRelease.value = false; + } +}); const notificationsSettings = computed(() => { return !updateOsNotificationsEnabled.value