From 2c8a545be55545f075e87a26fe1ce05101c42877 Mon Sep 17 00:00:00 2001 From: Eugen Ciur <eugen@papermerge.com> Date: Sat, 23 Oct 2021 15:53:33 +0200 Subject: [PATCH] fix minor bugs --- app/components/role/add.js | 4 ++-- app/components/role/edit.js | 2 +- app/components/user/change_password.hbs | 2 +- app/components/user/change_password.js | 2 +- app/components/user/edit.hbs | 2 +- app/components/user/edit.js | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/components/role/add.js b/app/components/role/add.js index c31acd0..48c903d 100644 --- a/app/components/role/add.js +++ b/app/components/role/add.js @@ -34,13 +34,13 @@ class AddRoleComponent extends Component { this.new_role.save(); } - this.router.transitionTo('roles'); + this.router.transitionTo('authenticated.roles'); } @action onCancel() { this.new_role.unloadRecord(); - this.router.transitionTo('roles'); + this.router.transitionTo('authenticated.roles'); } } diff --git a/app/components/role/edit.js b/app/components/role/edit.js index de7ceb7..25f6faf 100644 --- a/app/components/role/edit.js +++ b/app/components/role/edit.js @@ -17,7 +17,7 @@ class EditRoleComponent extends Component { let role = this.args.role; role.save(); - this.router.transitionTo('roles'); + this.router.transitionTo('authenticated.roles'); } } diff --git a/app/components/user/change_password.hbs b/app/components/user/change_password.hbs index b4f74d8..d36c0ba 100644 --- a/app/components/user/change_password.hbs +++ b/app/components/user/change_password.hbs @@ -21,5 +21,5 @@ @text="Change Password" @disabled={{this.disabled}} @onClick={{this.onSubmit}} /> - <Button::Cancel @route="users"/> + <Button::Cancel @route="authenticated.users"/> </div> diff --git a/app/components/user/change_password.js b/app/components/user/change_password.js index 951fc42..cb4b624 100644 --- a/app/components/user/change_password.js +++ b/app/components/user/change_password.js @@ -30,7 +30,7 @@ class ChangeUserPasswordComponent extends Component { let user = this.args.user; user.changePassword(this.new_password_1); - this.router.transitionTo('users'); + this.router.transitionTo('authenticated.users'); } } diff --git a/app/components/user/edit.hbs b/app/components/user/edit.hbs index 95abb30..50126c3 100644 --- a/app/components/user/edit.hbs +++ b/app/components/user/edit.hbs @@ -77,5 +77,5 @@ <div class="mb-3"> <Button::Submit @onClick={{this.onSubmit}} /> - <Button::Cancel @route="users"/> + <Button::Cancel @route="authenticated.users"/> </div> diff --git a/app/components/user/edit.js b/app/components/user/edit.js index 7eb1ddc..5975188 100644 --- a/app/components/user/edit.js +++ b/app/components/user/edit.js @@ -13,7 +13,7 @@ class EditUserComponent extends Component { let user = this.args.user; user.save(); - this.router.transitionTo('users'); + this.router.transitionTo('authenticated.users'); } } -- GitLab