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:
parent
5fd7badd1b
commit
b7b704e4c7
@ -105,21 +105,6 @@ function ListTemplatesController(
|
||||
|
||||
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 => {
|
||||
if (!template) {
|
||||
Alert(strings.get('error.DELETE'), strings.get('alert.MISSING_PARAMETER'));
|
||||
|
@ -90,9 +90,6 @@
|
||||
<at-launch-template template="template"
|
||||
ng-show="template.summary_fields.user_capabilities.start">
|
||||
</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)"
|
||||
ng-show="!vm.isPortalMode && template.summary_fields.user_capabilities.copy">
|
||||
</at-row-action>
|
||||
|
Loading…
Reference in New Issue
Block a user