hide toolbar is note is rootnote
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user