refactor: header os update available badge open update modal

This commit is contained in:
Zack Spear
2024-01-29 11:19:14 -08:00
committed by Zack Spear
parent 01b4937f35
commit f1059aa381
+3 -3
View File
@@ -56,11 +56,11 @@ const rebootRequiredLink = computed(() => {
</UiBadge>
</button>
<a
<button
v-if="showUpdateAvailable"
:href="WEBGUI_TOOLS_UPDATE.toString()"
class="group"
:title="t('Unraid OS {0} Update Available', [available])"
@click="updateOsStore.setModalOpen(true)"
>
<UiBadge
color="orange"
@@ -69,7 +69,7 @@ const rebootRequiredLink = computed(() => {
>
{{ t('Update Available') }}
</UiBadge>
</a>
</button>
<a
v-else-if="rebootRequiredLink"
:href="rebootRequiredLink"