LT-195: Add Worklist menu item to go wordlist when audit page is shown
This commit is contained in:
parent
7b106d9bdd
commit
f46b6b0ebe
@ -6,15 +6,25 @@
|
||||
{{fullName}} <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="userMenu">
|
||||
<li>
|
||||
<!-- TODO: Move this elsewhere in the Worklist? -->
|
||||
{{ >optionsButton }}
|
||||
</li>
|
||||
<li>
|
||||
<a href="audit" id="audit">
|
||||
<i class="fa fa-list-ul"></i> View Audit Log
|
||||
</a>
|
||||
</li>
|
||||
{{#if showWorklistMenu}}
|
||||
<li>
|
||||
<a href="worklist" id="worklist">
|
||||
<i class="fa fa-list-ul"></i> Worklist
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{{else}}
|
||||
<li>
|
||||
<!-- TODO: Move this elsewhere in the Worklist? -->
|
||||
{{ >optionsButton }}
|
||||
</li>
|
||||
<li>
|
||||
<a href="audit" id="audit">
|
||||
<i class="fa fa-list-ul"></i> View Audit Log
|
||||
</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
<li>
|
||||
<a href="changePassword" id="changePassword">
|
||||
<i class="fa fa-lock"></i> Change Password
|
||||
|
||||
@ -6,18 +6,28 @@ Template.lesionTrackerLayout.events({
|
||||
Router.go('/entrySignIn');
|
||||
});
|
||||
},
|
||||
'click #changePassword': function() {
|
||||
Router.go('/changePassword');
|
||||
'click #worklist': function(e, template) {
|
||||
template.showWorklistMenu.set(false);
|
||||
},
|
||||
'click #audit': function(e, template) {
|
||||
template.showWorklistMenu.set(true);
|
||||
}
|
||||
});
|
||||
|
||||
Template.lesionTrackerLayout.helpers({
|
||||
fullName: function() {
|
||||
return Meteor.user().profile.fullName;
|
||||
},
|
||||
|
||||
showWorklistMenu: function() {
|
||||
return Template.instance().showWorklistMenu.get();
|
||||
}
|
||||
});
|
||||
|
||||
Template.lesionTrackerLayout.onCreated(function() {
|
||||
// showViewer to go to viewer from audit
|
||||
this.showWorklistMenu = new ReactiveVar(false);
|
||||
|
||||
// Show countdown dialog
|
||||
var handle;
|
||||
$(document).on('TriggerOpenTimeoutCountdownDialog', function(e, leftTime) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user