mirror of
https://github.com/unraid/api.git
synced 2026-01-02 22:50:02 -06:00
28 lines
726 B
Vue
28 lines
726 B
Vue
<script setup lang="ts">
|
|
import { ArrowPathIcon, ArrowTopRightOnSquareIcon } from '@heroicons/vue/24/solid';
|
|
import type { ComposerTranslation } from 'vue-i18n';
|
|
|
|
import { useAccountStore } from '~/store/account';
|
|
import type { ButtonStyle } from '~/types/ui/button';
|
|
|
|
defineProps<{
|
|
btnStyle?: ButtonStyle;
|
|
t: ComposerTranslation;
|
|
}>();
|
|
|
|
const accountStore = useAccountStore();
|
|
</script>
|
|
|
|
<template>
|
|
<div class="flex flex-col sm:flex-shrink-0 sm:flex-grow-0 items-center">
|
|
<BrandButton
|
|
:btn-style="btnStyle"
|
|
:icon="ArrowPathIcon"
|
|
:icon-right="ArrowTopRightOnSquareIcon"
|
|
:text="t('Check for OS Updates')"
|
|
class="flex-0"
|
|
@click="accountStore.updateOs()"
|
|
/>
|
|
</div>
|
|
</template>
|