partial implement (Save)

This commit is contained in:
2026-04-16 07:01:57 +02:00
parent d571f156a6
commit d808b0289f
8 changed files with 363 additions and 105 deletions

View File

@@ -2,9 +2,11 @@
import { ref, reactive, onMounted, computed, watch } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { gql, createFolder, moveDocument } from '@/lib/gql'
import { useAppStore } from '@/stores/app'
import CreateItemDialog from './CreateItemDialog.vue'
const emit = defineEmits<{ close: [] }>()
const app = useAppStore()
interface DocMeta { slug: string; title: string }
@@ -378,6 +380,7 @@ function isActive(slug: string) {
</button>
<router-link
v-if="app.role === 'admin'"
to="/admin"
class="w-full btn-ghost text-center text-sm py-1.5"
@click="emit('close')"