1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Remove calendar icon from job templates list

This commit is contained in:
Marliana Lara 2018-07-11 11:05:56 -04:00
parent 5fd7badd1b
commit b7b704e4c7
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE
2 changed files with 0 additions and 18 deletions

View File

@ -105,21 +105,6 @@ function ListTemplatesController(
vm.isPortalMode = $state.includes('portalMode'); vm.isPortalMode = $state.includes('portalMode');
vm.scheduleTemplate = template => {
if (!template) {
Alert(strings.get('error.SCHEDULE'), strings.get('alert.MISSING_PARAMETER'));
return;
}
if (isJobTemplate(template)) {
$state.go('templates.editJobTemplate.schedules', { job_template_id: template.id });
} else if (isWorkflowTemplate(template)) {
$state.go('templates.editWorkflowJobTemplate.schedules', { workflow_job_template_id: template.id });
} else {
Alert(strings.get('error.UNKNOWN'), strings.get('alert.UNKNOWN_SCHEDULE'));
}
};
vm.deleteTemplate = template => { vm.deleteTemplate = template => {
if (!template) { if (!template) {
Alert(strings.get('error.DELETE'), strings.get('alert.MISSING_PARAMETER')); Alert(strings.get('error.DELETE'), strings.get('alert.MISSING_PARAMETER'));

View File

@ -90,9 +90,6 @@
<at-launch-template template="template" <at-launch-template template="template"
ng-show="template.summary_fields.user_capabilities.start"> ng-show="template.summary_fields.user_capabilities.start">
</at-launch-template> </at-launch-template>
<at-row-action icon="fa-calendar" ng-click="vm.scheduleTemplate(template)"
ng-show="!vm.isPortalMode && template.summary_fields.user_capabilities.schedule">
</at-row-action>
<at-row-action icon="fa-copy" ng-click="vm.copyTemplate(template)" <at-row-action icon="fa-copy" ng-click="vm.copyTemplate(template)"
ng-show="!vm.isPortalMode && template.summary_fields.user_capabilities.copy"> ng-show="!vm.isPortalMode && template.summary_fields.user_capabilities.copy">
</at-row-action> </at-row-action>