partial implement (Save)
This commit is contained in:
@@ -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')"
|
||||
|
||||
Reference in New Issue
Block a user