fix: refresh status after edit (#2032)
This commit is contained in:
parent
c7b77216c1
commit
ccf115ca4c
3 changed files with 13 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue