- Add many-to-many relationship between posts and workspace labels - Add label selector in post edit page with autosave - Display labels in posts list - Add hashtags modal with search for appending hashtags to post content - Fix sidebar active state for posts edit page - Fix AvatarImage null src warning in SocialAccountsGrid - Fix new post state by using Inertia::location for full page reload - Hide close button on CommandDialog by default
33 lines
1 KiB
Vue
33 lines
1 KiB
Vue
<script setup lang="ts">
|
|
import type { DialogRootEmits, DialogRootProps } from "reka-ui"
|
|
import { useForwardPropsEmits } from "reka-ui"
|
|
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog'
|
|
import Command from "./Command.vue"
|
|
|
|
const props = withDefaults(defineProps<DialogRootProps & {
|
|
title?: string
|
|
description?: string
|
|
showCloseButton?: boolean
|
|
}>(), {
|
|
title: "Command Palette",
|
|
description: "Search for a command to run...",
|
|
showCloseButton: false,
|
|
})
|
|
const emits = defineEmits<DialogRootEmits>()
|
|
|
|
const forwarded = useForwardPropsEmits(props, emits)
|
|
</script>
|
|
|
|
<template>
|
|
<Dialog v-slot="slotProps" v-bind="forwarded">
|
|
<DialogContent class="overflow-hidden p-0" :show-close-button="showCloseButton">
|
|
<DialogHeader class="sr-only">
|
|
<DialogTitle>{{ title }}</DialogTitle>
|
|
<DialogDescription>{{ description }}</DialogDescription>
|
|
</DialogHeader>
|
|
<Command>
|
|
<slot v-bind="slotProps" />
|
|
</Command>
|
|
</DialogContent>
|
|
</Dialog>
|
|
</template>
|