From e3b34b52d6889e184f8803f10f6330e864f1d58b Mon Sep 17 00:00:00 2001 From: Aysel Afsar Date: Tue, 22 Mar 2016 17:46:14 -0400 Subject: [PATCH] Bug fixing: Show Worklist option in user account menu if loaded page is Audit or Change Password --- .../client/components/userAccountMenu/userAccountMenu.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Packages/lesiontracker/client/components/userAccountMenu/userAccountMenu.js b/Packages/lesiontracker/client/components/userAccountMenu/userAccountMenu.js index 6cbe6fbc4..fbba498ee 100644 --- a/Packages/lesiontracker/client/components/userAccountMenu/userAccountMenu.js +++ b/Packages/lesiontracker/client/components/userAccountMenu/userAccountMenu.js @@ -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); } });