elk/components/publish/PublishButton.vue

15 lines
345 B
Vue
Raw Normal View History

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