Bug fixing: Show Worklist option in user account menu if loaded page is Audit or Change Password

This commit is contained in:
Aysel Afsar 2016-03-22 17:46:14 -04:00
parent 33f25528b1
commit e3b34b52d6

View File

@ -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);
}
});