rename close to cancel

This commit is contained in:
2023-05-21 01:52:08 +02:00
parent 1160165cf5
commit e456ed2f5c
2 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ const emit = defineEmits<{
<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>
<button class="btn-sm btn" @click="close">Close</button>
<button class="btn-sm btn" @click="close">Cancel</button>
</template>
</Modal>
<Modal>
@@ -37,7 +37,7 @@ const emit = defineEmits<{
<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>
<button class="btn-sm btn" @click="close">Cancel</button>
<button class="btn-primary btn-sm btn" @click="emit('setRoot', close)">
Set current note as root
</button>