Skip to content

Commit

Permalink
Item Add: Navigate to the new Item once added (#3010)
Browse files Browse the repository at this point in the history
Currently, if you go to Settings -> Items -> Add -> Save, you'll be
brought back to the Items list (back navigation).

This PR changes this behavior so that after the new item is saved/added,
the user is redirected to the Item Details page **of that new item**, so
they can immediately work on it.

Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng authored Jan 19, 2025
1 parent 3e010ec commit 7dd7f31
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ export default {
}
this.dirty = false
this.$f7router.back()
if (this.createMode) {
this.$f7router.navigate('/settings/items/' + this.item.name)
} else {
this.$f7router.back()
}
}).catch((err) => {
this.$f7.toast.create({
text: 'Item not saved: ' + err,
Expand Down

0 comments on commit 7dd7f31

Please sign in to comment.