Bug fixing: Show Worklist option in user account menu if loaded page is Audit or Change Password
This commit is contained in:
parent
33f25528b1
commit
e3b34b52d6
@ -32,11 +32,11 @@ Template.userAccountMenu.helpers({
|
||||
|
||||
Template.userAccountMenu.onCreated(function() {
|
||||
// showViewer to go to viewer from audit
|
||||
this.showWorklistMenu = new ReactiveVar(true);
|
||||
this.showWorklistMenu = new ReactiveVar(false);
|
||||
// Get url and check worklist
|
||||
var currentPath = Router.current().route.path(this);
|
||||
if (currentPath === '/' || currentPath === '/worklist') {
|
||||
this.showWorklistMenu.set(false);
|
||||
if (currentPath === '/audit' || currentPath === '/changePassword') {
|
||||
this.showWorklistMenu.set(true);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user