Skip to content

Commit

Permalink
Moving configure menu call to user preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
anuprulez committed Jun 6, 2017
1 parent 07ea4c0 commit 207249a
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 18 deletions.
9 changes: 9 additions & 0 deletions client/galaxy/scripts/mvc/user/user-preferences.js
Expand Up @@ -65,6 +65,14 @@ define( [ 'mvc/form/form-view', 'mvc/ui/ui-misc' ], function( Form, Ui ) {
window.location.href = Galaxy.root + 'custom_builds';
}
},
'configure_menu': {
title : 'Configure workflow menu',
description : 'Configure your workflow items which appear in the Tool panel.',
icon : 'fa-cog',
onclick : function() {
window.location.href = Galaxy.root + 'workflow/configure_menu';
}
},
'logout': {
title : 'Sign out',
description : 'Click here to sign out of all sessions.',
Expand Down Expand Up @@ -119,6 +127,7 @@ define( [ 'mvc/form/form-view', 'mvc/ui/ui-misc' ], function( Form, Ui ) {
if( config.enable_openid && !config.use_remote_user ) {
self._addLink( 'openids' );
}
self._addLink( 'configure_menu' );
self._addLink( 'logout' );
self.$preferences.append( self._templateFooter( data ) );
self.$el.empty().append( self.$preferences );
Expand Down
6 changes: 3 additions & 3 deletions client/galaxy/scripts/mvc/workflow/workflow-configure-menu.js
Expand Up @@ -80,7 +80,7 @@ define( [], function() {
data: JSON.stringify( { 'workflow_ids': ids } ),
contentType : 'application/json'
}).done( function( response ) {
window.location = Galaxy.root + 'workflow?status='+ response.status +'&message=' + response.message;
window.location = Galaxy.root + 'user';
});
});
},
Expand Down Expand Up @@ -121,8 +121,8 @@ define( [], function() {
tableHtml = tableHtml + '<a class="action-button wf-save-menu wf-action fa fa-floppy-o" href="#" title="Save">' +
'<span>Save</span>' +
'</a>' +
'<a class="action-button wf-back wf-action fa fa-arrow-left" href="'+ Galaxy.root +'workflow" title="Back to workflow">' +
'<span>Back to workflow</span>' +
'<a class="action-button wf-back wf-action fa fa-arrow-left" href="'+ Galaxy.root +'user" title="Back to User Preferences">' +
'<span>Back to User Preferences</span>' +
'</a>';
return tableHtml;
},
Expand Down
6 changes: 0 additions & 6 deletions client/galaxy/scripts/mvc/workflow/workflow.js
Expand Up @@ -182,12 +182,6 @@ define( [ 'mvc/tool/tool-form-composite', 'mvc/form/form-view', 'mvc/ui/ui-misc'
'<div class="response-message"></div>' +
'<h2>Your workflows</h2>' +
'</div>'+
'<div class="other-options wf">' +
'<h2>Other options</h2>' +
'<a class="action-button fa fa-cog wf-action" href="'+ Galaxy.root +'workflow/configure_menu" title="Configure your workflow menu">' +
'<span>Configure your workflow menu</span>' +
'</a>' +
'</div>' +
'</div>';
}
});
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/user/user-preferences.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/maps/mvc/workflow/workflow-configure-menu.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 207249a

Please sign in to comment.