mirror of
https://github.com/unraid/api.git
synced 2026-05-07 23:51:40 -05:00
refactor: btnStyle prop for CallbackButton component
This commit is contained in:
@@ -2,8 +2,10 @@
|
|||||||
import { ArrowPathIcon, ArrowTopRightOnSquareIcon } from '@heroicons/vue/24/solid';
|
import { ArrowPathIcon, ArrowTopRightOnSquareIcon } from '@heroicons/vue/24/solid';
|
||||||
|
|
||||||
import { useAccountStore } from '~/store/account';
|
import { useAccountStore } from '~/store/account';
|
||||||
|
import type { ButtonStyle } from '~/types/ui/button';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
|
btnStyle?: ButtonStyle;
|
||||||
t: any;
|
t: any;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
@@ -13,6 +15,7 @@ const accountStore = useAccountStore();
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col sm:flex-shrink-0 sm:flex-grow-0 items-center">
|
<div class="flex flex-col sm:flex-shrink-0 sm:flex-grow-0 items-center">
|
||||||
<BrandButton
|
<BrandButton
|
||||||
|
:btn-style="btnStyle"
|
||||||
:icon="ArrowPathIcon"
|
:icon="ArrowPathIcon"
|
||||||
:icon-right="ArrowTopRightOnSquareIcon"
|
:icon-right="ArrowTopRightOnSquareIcon"
|
||||||
:text="t('Check for OS Updates')"
|
:text="t('Check for OS Updates')"
|
||||||
|
|||||||
Reference in New Issue
Block a user