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 #default>Are you sure you want to delete this note?</template>
<template #actions="{ close }"> <template #actions="{ close }">
<button class="btn-primary btn-sm btn" @click="emit('delete', close)">Delete note</button> <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> </template>
</Modal> </Modal>
<Modal> <Modal>
@@ -37,7 +37,7 @@ const emit = defineEmits<{
<template #title>Set root note</template> <template #title>Set root note</template>
<template #default>Are you sure you want to set this note as root note?</template> <template #default>Are you sure you want to set this note as root note?</template>
<template #actions="{ close }"> <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)"> <button class="btn-primary btn-sm btn" @click="emit('setRoot', close)">
Set current note as root Set current note as root
</button> </button>

View File

@@ -81,7 +81,7 @@ const authModalInitialStateOpen = ref(
<template #title>Sign out</template> <template #title>Sign out</template>
<template #default>Are you sure want to signout?</template> <template #default>Are you sure want to signout?</template>
<template #actions="{ close }"> <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="signOut(close)">Sign out</button> <button class="btn-primary btn-sm btn" @click="signOut(close)">Sign out</button>
</template> </template>
</Modal> </Modal>