feat: go to new status after redraftting
This commit is contained in:
parent
d62292d219
commit
22fcc1d68b
5 changed files with 42 additions and 13 deletions
|
@ -72,7 +72,11 @@ const deleteAndRedraft = async () => {
|
|||
|
||||
removeCachedStatus(status.id)
|
||||
await masto.statuses.remove(status.id)
|
||||
openPublishDialog('dialog', await getDraftFromStatus(status), true)
|
||||
await openPublishDialog('dialog', await getDraftFromStatus(status), true)
|
||||
|
||||
// Go to the new status, if the page is the old status
|
||||
if (lastPublishDialogStatus.value && route.matched.some(m => m.path === '/:server?/@:account/:status'))
|
||||
router.push(getStatusRoute(lastPublishDialogStatus.value))
|
||||
}
|
||||
|
||||
const reply = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue