fix: refresh status after edit (#2032)

This commit is contained in:
Alex 2023-04-30 23:19:14 +08:00 committed by GitHub
parent c7b77216c1
commit ccf115ca4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View file

@ -7,6 +7,10 @@ const props = defineProps<{
command?: boolean
}>()
const emit = defineEmits<{
(event: 'afterEdit'): void
}>()
const { details, command } = $(props)
const {
@ -101,10 +105,11 @@ function reply() {
}
async function editStatus() {
openPublishDialog(`edit-${status.id}`, {
await openPublishDialog(`edit-${status.id}`, {
...await getDraftFromStatus(status),
editingStatus: status,
}, true)
emit('afterEdit')
}
function showFavoritedAndBoostedBy() {