mirror of
https://github.com/unraid/api.git
synced 2026-01-03 23:19:54 -06:00
Co-authored-by: Eli Bosley <ekbosley@gmail.com> Co-authored-by: Pujit Mehrotra <pujit@lime-technology.com> Co-authored-by: mdatelle <mike@datelle.net> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Zack Spear <zackspear@users.noreply.github.com>
37 lines
1.0 KiB
Vue
37 lines
1.0 KiB
Vue
<script lang="ts" setup>
|
|
import { BrandButton } from '@unraid/ui';
|
|
import { useServerStore } from '~/store/server';
|
|
import { storeToRefs } from 'pinia';
|
|
import { useI18n } from 'vue-i18n';
|
|
|
|
const { t } = useI18n();
|
|
|
|
const serverStore = useServerStore();
|
|
const { authAction, stateData } = storeToRefs(serverStore);
|
|
</script>
|
|
|
|
<template>
|
|
<div class="whitespace-normal flex flex-col gap-y-16px max-w-3xl">
|
|
<span v-if="stateData.error" class="text-unraid-red font-semibold">
|
|
<h3 class="text-16px mb-8px">{{ t(stateData.heading) }}</h3>
|
|
<span class="text-14px" v-html="t(stateData.message)" />
|
|
</span>
|
|
<span v-if="authAction">
|
|
<BrandButton
|
|
:disabled="authAction?.disabled"
|
|
:icon="authAction.icon"
|
|
size="12px"
|
|
:text="t(authAction.text)"
|
|
:title="authAction?.title ? t(authAction?.title) : undefined"
|
|
@click="authAction.click?.()"
|
|
/>
|
|
</span>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="postcss">
|
|
/* Import unraid-ui globals first */
|
|
@import '@unraid/ui/styles';
|
|
@import '../assets/main.css';
|
|
</style>
|