Always create nav link for new screens
This commit is contained in:
parent
f1121a11a3
commit
a7de2d8aca
|
@ -58,13 +58,12 @@
|
||||||
const response = await store.actions.screens.save(screen)
|
const response = await store.actions.screens.save(screen)
|
||||||
screenId = response._id
|
screenId = response._id
|
||||||
|
|
||||||
// Add link in layout for list screens
|
// Add link in layout. We only ever actually create 1 screen now, even
|
||||||
if (screen.props._instanceName.endsWith("List")) {
|
// for autoscreens, so it's always safe to do this.
|
||||||
await store.actions.links.save(
|
await store.actions.links.save(
|
||||||
screen.routing.route,
|
screen.routing.route,
|
||||||
capitalise(screen.routing.route.split("/")[1])
|
capitalise(screen.routing.route.split("/")[1])
|
||||||
)
|
)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Go to new screen
|
// Go to new screen
|
||||||
|
|
Loading…
Reference in New Issue