mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-07 09:29:59 +00:00
chore: update
This commit is contained in:
parent
d8621024f8
commit
071e11b8f4
1 changed files with 6 additions and 6 deletions
|
@ -23,7 +23,7 @@ const status = $computed(() => {
|
||||||
})
|
})
|
||||||
|
|
||||||
const currentVisibility = $computed(() => {
|
const currentVisibility = $computed(() => {
|
||||||
return STATUS_VISIBILITIES.find(v => v.value === status.visibility)!
|
return STATUS_VISIBILITIES.find(v => v.value === status.visibility) || STATUS_VISIBILITIES[0]
|
||||||
})
|
})
|
||||||
|
|
||||||
let isUploading = $ref<boolean>(false)
|
let isUploading = $ref<boolean>(false)
|
||||||
|
@ -148,9 +148,12 @@ onUnmounted(() => {
|
||||||
<div i-ri:upload-line />
|
<div i-ri:upload-line />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<div flex-auto />
|
||||||
|
|
||||||
<CommonDropdown>
|
<CommonDropdown>
|
||||||
<button btn-action-icon>
|
<button btn-action-icon w-12>
|
||||||
<div :class="currentVisibility.icon" />
|
<div :class="currentVisibility.icon" />
|
||||||
|
<div i-ri:arrow-down-s-line text-sm op50 mr--1 />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<template #popper>
|
<template #popper>
|
||||||
|
@ -168,11 +171,8 @@ onUnmounted(() => {
|
||||||
</CommonDropdownItem>
|
</CommonDropdownItem>
|
||||||
</template>
|
</template>
|
||||||
</CommonDropdown>
|
</CommonDropdown>
|
||||||
|
|
||||||
<div flex-auto />
|
|
||||||
|
|
||||||
<button
|
<button
|
||||||
btn-solid rounded-full
|
btn-solid rounded-full text-sm
|
||||||
:disabled="isUploading || (draft.attachments.length === 0 && !draft.params.status)"
|
:disabled="isUploading || (draft.attachments.length === 0 && !draft.params.status)"
|
||||||
@click="publish"
|
@click="publish"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue