add modal titles

This commit is contained in:
2023-05-20 15:41:37 +02:00
parent 6c4bd5b0ae
commit 1160165cf5
2 changed files with 10 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ const emit = defineEmits<{
<i class="fas fa-fw fa-trash" />
</button>
</template>
<template #title>Delete note</template>
<template #default>Are you sure you want to delete this note?</template>
<template #actions="{ close }">
<button class="btn-primary btn-sm btn" @click="emit('delete', close)">Delete note</button>
@@ -33,6 +34,7 @@ const emit = defineEmits<{
<i class="fas fa-fw fa-sitemap" />
</button>
</template>
<template #title>Set root note</template>
<template #default>Are you sure you want to set this note as root note?</template>
<template #actions="{ close }">
<button class="btn-sm btn" @click="close">Close</button>

View File

@@ -51,6 +51,7 @@ const authModalInitialStateOpen = ref(
<template #activator="{ open }">
<button class="btn-outline btn-sm btn py-1 text-white" @click="open">Sign in</button>
</template>
<template #title>Sign in</template>
<template #default="{ close }">
<Auth @signedIn="close" />
</template>
@@ -70,8 +71,14 @@ const authModalInitialStateOpen = ref(
>
<Modal>
<template #activator="{ open }">
<li @click="open" class="text-base"><a><i class="fa-fw fa-solid fa-right-from-bracket" />Sign out</a></li>
<li @click="open" class="text-base">
<a>
<i class="fa-fw fa-solid fa-right-from-bracket" />
Sign out
</a>
</li>
</template>
<template #title>Sign out</template>
<template #default>Are you sure want to signout?</template>
<template #actions="{ close }">
<button class="btn-sm btn" @click="close">Close</button>