Files
api/web/components/KeyActions.vue
2023-11-01 13:36:17 -07:00

28 lines
624 B
Vue

<script lang="ts" setup>
import { storeToRefs } from 'pinia';
import { useServerStore } from '~/store/server';
defineProps<{
t: any;
}>();
const { keyActions } = storeToRefs(useServerStore());
</script>
<template>
<ul v-if="keyActions" class="flex flex-col gap-y-8px">
<li v-for="action in keyActions" :key="action.name">
<BrandButton
class="w-full sm:max-w-300px"
:disabled="action?.disabled"
:external="action?.external"
:href="action?.href"
:icon="action.icon"
:text="t(action.text)"
@click="action.click()"
/>
</li>
</ul>
</template>