fix(customtemplate): edit custom template [EE-1691] (#5632)

pull/5655/head
Chaim Lev-Ari 3 years ago committed by GitHub
parent 9121e8e69c
commit 689c2193c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,7 +30,7 @@
> >
<template-item-actions> <template-item-actions>
<div ng-if="$ctrl.isEditAllowed(template)" style="display: flex;"> <div ng-if="$ctrl.isEditAllowed(template)" style="display: flex;">
<a ui-state="$ctrl.editPath" ui-state-params="({id: template.Id})" ng-click="$event.stopPropagation();" class="btn btn-primary btn-xs" style="margin-right: 10px;"> <a ui-state="$ctrl.editPath" ui-state-params="{id: template.Id}" ng-click="$event.stopPropagation();" class="btn btn-primary btn-xs" style="margin-right: 10px;">
Edit Edit
</a> </a>
<button class="btn btn-danger btn-xs" ng-click="$ctrl.onDeleteClick(template.Id); $event.stopPropagation();">Delete</button> <button class="btn btn-danger btn-xs" ng-click="$ctrl.onDeleteClick(template.Id); $event.stopPropagation();">Delete</button>

@ -65,6 +65,7 @@
templates="$ctrl.templates" templates="$ctrl.templates"
table-key="customTemplates" table-key="customTemplates"
create-path="docker.templates.custom.new" create-path="docker.templates.custom.new"
edit-path="docker.templates.custom.edit"
is-edit-allowed="$ctrl.isEditAllowed" is-edit-allowed="$ctrl.isEditAllowed"
on-select-click="($ctrl.selectTemplate)" on-select-click="($ctrl.selectTemplate)"
on-delete-click="($ctrl.confirmDelete)" on-delete-click="($ctrl.confirmDelete)"

Loading…
Cancel
Save