Fix redirections when deleting screns
This commit is contained in:
parent
eeb0a9fc64
commit
e2105f51a8
|
@ -12,7 +12,7 @@
|
||||||
urlParam: "screenId",
|
urlParam: "screenId",
|
||||||
stateKey: "selectedScreenId",
|
stateKey: "selectedScreenId",
|
||||||
validate: id => $store.screens.some(screen => screen._id === id),
|
validate: id => $store.screens.some(screen => screen._id === id),
|
||||||
fallbackUrl: "../../",
|
fallbackUrl: "../../design",
|
||||||
store,
|
store,
|
||||||
routify,
|
routify,
|
||||||
})
|
})
|
||||||
|
|
|
@ -66,7 +66,6 @@
|
||||||
const deleteScreen = async () => {
|
const deleteScreen = async () => {
|
||||||
try {
|
try {
|
||||||
await store.actions.screens.delete(screen)
|
await store.actions.screens.delete(screen)
|
||||||
$goto("../")
|
|
||||||
notifications.success("Deleted screen successfully.")
|
notifications.success("Deleted screen successfully.")
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
notifications.error("Error deleting screen")
|
notifications.error("Error deleting screen")
|
||||||
|
|
Loading…
Reference in New Issue