move wf and jt form launch buttons to the left instead of the right

This commit is contained in:
John Mitchell
2019-03-28 11:32:12 -04:00
parent 9479b1b824
commit b3ad12f31a
2 changed files with 14 additions and 14 deletions

View File

@@ -393,6 +393,13 @@ function(NotificationsList, i18n) {
},
buttons: { //for now always generates <button> tags
launch: {
component: 'at-launch-template',
templateObj: 'job_template_obj',
ngShow: '(job_template_obj.summary_fields.user_capabilities.start || canAddJobTemplate)',
ngDisabled: 'disableLaunch || job_template_form.$dirty',
showTextButton: 'true'
},
cancel: {
ngClick: 'formCancel()',
ngShow: '(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
@@ -405,13 +412,6 @@ function(NotificationsList, i18n) {
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: "job_template_form.$invalid",//true //Disable when $pristine or $invalid, optional and when can_edit = false, for permission reasons
ngShow: '(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
},
launch: {
component: 'at-launch-template',
templateObj: 'job_template_obj',
ngShow: '(job_template_obj.summary_fields.user_capabilities.start || canAddJobTemplate)',
ngDisabled: 'disableLaunch || job_template_form.$dirty',
showTextButton: 'true'
}
},

View File

@@ -139,6 +139,13 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) {
},
buttons: { //for now always generates <button> tags
launch: {
component: 'at-launch-template',
templateObj: 'workflow_job_template_obj',
ngShow: '(workflow_job_template_obj.summary_fields.user_capabilities.start || canAddWorkflowJobTemplate)',
ngDisabled: 'disableLaunch || workflow_job_template_form.$dirty',
showTextButton: 'true'
},
cancel: {
ngClick: 'formCancel()',
ngShow: '(workflow_job_template_obj.summary_fields.user_capabilities.edit || canAddWorkflowJobTemplate)'
@@ -151,13 +158,6 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) {
ngClick: 'formSave()', //$scope.function to call on click, optional
ngDisabled: "workflow_job_template_form.$invalid || can_edit!==true", //Disable when $pristine or $invalid, optional and when can_edit = false, for permission reasons
ngShow: '(workflow_job_template_obj.summary_fields.user_capabilities.edit || canAddWorkflowJobTemplate)'
},
launch: {
component: 'at-launch-template',
templateObj: 'workflow_job_template_obj',
ngShow: '(workflow_job_template_obj.summary_fields.user_capabilities.start || canAddWorkflowJobTemplate)',
ngDisabled: 'disableLaunch || workflow_job_template_form.$dirty',
showTextButton: 'true'
}
},