Skip to content
Snippets Groups Projects
Commit 2c8a545b authored by Eugen Ciur's avatar Eugen Ciur
Browse files

fix minor bugs

parent 928cfb37
No related branches found
No related tags found
No related merge requests found
...@@ -34,13 +34,13 @@ class AddRoleComponent extends Component { ...@@ -34,13 +34,13 @@ class AddRoleComponent extends Component {
this.new_role.save(); this.new_role.save();
} }
this.router.transitionTo('roles'); this.router.transitionTo('authenticated.roles');
} }
@action @action
onCancel() { onCancel() {
this.new_role.unloadRecord(); this.new_role.unloadRecord();
this.router.transitionTo('roles'); this.router.transitionTo('authenticated.roles');
} }
} }
......
...@@ -17,7 +17,7 @@ class EditRoleComponent extends Component { ...@@ -17,7 +17,7 @@ class EditRoleComponent extends Component {
let role = this.args.role; let role = this.args.role;
role.save(); role.save();
this.router.transitionTo('roles'); this.router.transitionTo('authenticated.roles');
} }
} }
......
...@@ -21,5 +21,5 @@ ...@@ -21,5 +21,5 @@
@text="Change Password" @text="Change Password"
@disabled={{this.disabled}} @disabled={{this.disabled}}
@onClick={{this.onSubmit}} /> @onClick={{this.onSubmit}} />
<Button::Cancel @route="users"/> <Button::Cancel @route="authenticated.users"/>
</div> </div>
...@@ -30,7 +30,7 @@ class ChangeUserPasswordComponent extends Component { ...@@ -30,7 +30,7 @@ class ChangeUserPasswordComponent extends Component {
let user = this.args.user; let user = this.args.user;
user.changePassword(this.new_password_1); user.changePassword(this.new_password_1);
this.router.transitionTo('users'); this.router.transitionTo('authenticated.users');
} }
} }
......
...@@ -77,5 +77,5 @@ ...@@ -77,5 +77,5 @@
<div class="mb-3"> <div class="mb-3">
<Button::Submit <Button::Submit
@onClick={{this.onSubmit}} /> @onClick={{this.onSubmit}} />
<Button::Cancel @route="users"/> <Button::Cancel @route="authenticated.users"/>
</div> </div>
...@@ -13,7 +13,7 @@ class EditUserComponent extends Component { ...@@ -13,7 +13,7 @@ class EditUserComponent extends Component {
let user = this.args.user; let user = this.args.user;
user.save(); user.save();
this.router.transitionTo('users'); this.router.transitionTo('authenticated.users');
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment