refactor: change publish button text for replying

This commit is contained in:
三咲智子 2023-01-09 22:31:30 +08:00
parent 675a14db80
commit 9721bbf12b
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -364,7 +364,9 @@ const isPublishDisabled = computed(() => {
aria-describedby="publish-tooltip"
@click="publish"
>
{{ !draft.editingStatus ? $t('action.publish') : $t('action.save_changes') }}
<span v-if="draft.editingStatus">{{ $t('action.save_changes') }}</span>
<span v-else-if="draft.params.inReplyToId">{{ $t('action.reply') }}</span>
<span v-else>{{ $t('action.publish') }}</span>
</button>
</CommonTooltip>
</div>