refactor(web): update page downgrade in progress messaging

This commit is contained in:
Zack Spear
2023-11-03 17:11:37 -07:00
parent 79e2e89a80
commit fe906c025e
2 changed files with 16 additions and 1 deletions

View File

@@ -44,7 +44,8 @@ const { rebootType } = storeToRefs(updateOsActionsStore);
<UpdateOsStatus
:title="t('Downgrade Unraid OS')"
:downgrade-not-available="restoreVersion === ''"
:t="t" />
:t="t"
/>
<UpdateOsDowngrade
v-if="restoreVersion && rebootType === ''"
:release-date="restoreReleaseDate"

View File

@@ -15,12 +15,25 @@ else
echo "Third party plugins found - PLEASE CHECK YOUR UNRAID NOTIFICATIONS AND WAIT FOR THE MESSAGE THAT IT IS SAFE TO REBOOT!"
fi
*/
import { storeToRefs } from 'pinia';
import { useI18n } from 'vue-i18n';
import { useUpdateOsActionsStore } from '~/store/updateOsActions';
import 'tailwindcss/tailwind.css';
import '~/assets/main.css';
const { t } = useI18n();
const updateOsActionsStore = useUpdateOsActionsStore();
const { rebootType } = storeToRefs(updateOsActionsStore);
const subtitle = computed(() => {
if (rebootType.value === 'downgrade') {
return t('Please finish the initiated downgrade to enable updates.');
}
return '';
});
</script>
<template>
@@ -28,6 +41,7 @@ const { t } = useI18n();
<UpdateOsStatus
:show-update-check="true"
:title="t('Update Unraid OS')"
:subtitle="subtitle"
:t="t"
/>
</UiPageContainer>