hide toolbar is note is rootnote

This commit is contained in:
2023-05-13 08:28:11 +02:00
parent 8eb7e57203
commit 5240d61b35
2 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
<script setup lang="ts">
const props = defineProps<{
note: Note
}>()
const emit = defineEmits<{
delete: [close: () => void]
setRoot: [close: () => void]
@@ -11,7 +14,7 @@ const emit = defineEmits<{
>
<slot name="title"></slot>
</h1>
<div class="btn-group flex items-center">
<div class="btn-group flex items-center" v-if="!props.note.isRoot">
<Modal>
<template #activator="{ open }">
<button class="btn-toolbar btn-sm btn" @click="open">