feat(fullstack): Add test application form creation
This commit is contained in:
@@ -25,7 +25,18 @@
|
||||
|
||||
<template #footer="{ collapsed }">
|
||||
<UserMenu :collapsed="collapsed" />
|
||||
<UButton @click="copyAccessTokenToClipboard">📋</UButton>
|
||||
<UButton
|
||||
v-if="showSapCopyButton"
|
||||
:loading="isDuplicatingSapForm"
|
||||
:disabled="isDuplicatingSapForm"
|
||||
icon="i-lucide-copy"
|
||||
size="xs"
|
||||
variant="soft"
|
||||
@click="duplicateSapS4HanaForTesting"
|
||||
>
|
||||
🖨
|
||||
</UButton>
|
||||
<UButton size="xs" variant="soft" @click="copyAccessTokenToClipboard">📋</UButton>
|
||||
</template>
|
||||
</UDashboardSidebar>
|
||||
|
||||
@@ -37,6 +48,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useNotificationStore } from '~~/stores/useNotificationStore'
|
||||
import { useSeededSapS4HanaDuplicator } from '~/composables/testing/useSeededSapS4HanaDuplicator'
|
||||
|
||||
const { t: $t } = useI18n()
|
||||
|
||||
@@ -65,6 +77,12 @@ const isNotificationsSlideoverOpen = ref(false)
|
||||
const notificationStore = useNotificationStore()
|
||||
const { hasUnread } = storeToRefs(notificationStore)
|
||||
|
||||
const {
|
||||
showButton: showSapCopyButton,
|
||||
isDuplicating: isDuplicatingSapForm,
|
||||
duplicateSapS4HanaForTesting
|
||||
} = useSeededSapS4HanaDuplicator()
|
||||
|
||||
onMounted(async () => {
|
||||
await notificationStore.fetchUnreadCount()
|
||||
notificationStore.startPeriodicRefresh()
|
||||
|
||||
Reference in New Issue
Block a user