Hide delete button if it is not needed

stable
David Barragán Merino 2017-01-18 14:07:35 +01:00
parent 9fb32124d4
commit f995b75d23
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@
a.icon-delete( a.icon-delete(
href="" href=""
title="{{'COMMON.DELETE' | translate}}" title="{{'COMMON.DELETE' | translate}}"
ng-if="!vm.attachment.get('editable')"
tg-check-permission="modify_{{vm.type}}"
ng-click="vm.delete()" ng-click="vm.delete()"
) )
tg-svg(svg-icon="icon-trash") tg-svg(svg-icon="icon-trash")