mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
comply with tests
This commit is contained in:
parent
87c3f4619e
commit
07bf1b4653
@ -98,13 +98,13 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.success = false
|
this.success = false
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
if (this.$router.history.current.name === 'post-id-slug'){
|
if (this.$router.history.current.name === 'post-id-slug') {
|
||||||
// redirect to index
|
// redirect to index
|
||||||
this.$router.history.push('/')
|
this.$router.history.push('/')
|
||||||
} else {
|
} else {
|
||||||
// reload the page (when deleting from profile or index)
|
// reload the page (when deleting from profile or index)
|
||||||
this.$router.history.go()
|
window.location.assign(window.location.href)
|
||||||
}
|
}
|
||||||
}, 500)
|
}, 500)
|
||||||
}, 1500)
|
}, 1500)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user