mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-02 23:19:57 +00:00
15 lines
345 B
Vue
15 lines
345 B
Vue
<script setup lang="ts">
|
|
function openDialog() {
|
|
if (dialogDraft.draft.value.editingStatus)
|
|
openPublishDialog(getDefaultDraft())
|
|
else openPublishDialog()
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<button btn-outline rounded-full font-bold py4 flex="~ gap2 center" @click="openDialog">
|
|
<div i-ri:quill-pen-line />
|
|
Compose
|
|
</button>
|
|
</template>
|