1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-02 23:19:57 +00:00
elk/components/publish/PublishButton.vue

15 lines
345 B
Vue
Raw Normal View History

2022-11-24 14:32:20 +00:00
<script setup lang="ts">
function openDialog() {
if (dialogDraft.draft.value.editingStatus)
openPublishDialog(getDefaultDraft())
else openPublishDialog()
}
</script>
2022-11-24 08:04:53 +00:00
<template>
2022-11-24 14:32:20 +00:00
<button btn-outline rounded-full font-bold py4 flex="~ gap2 center" @click="openDialog">
2022-11-24 08:04:53 +00:00
<div i-ri:quill-pen-line />
Compose
</button>
</template>