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

pull/5651/head
Chaim Lev-Ari 3 years ago committed by GitHub
parent a781021072
commit 1f4a7b32e3
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