Hide delete icon if attachments are not editable

stable
David Barragán Merino 2016-01-08 19:29:55 +01:00
parent 77ee2a77ef
commit a163372fc5
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@
span {{::vm.attachment.getIn(['file', 'name'])}} span {{::vm.attachment.getIn(['file', 'name'])}}
a.icon-delete( a.icon-delete(
ng-if="vm.attachment.get('editable')"
href="" href=""
title="{{'COMMON.DELETE' | translate}}" title="{{'COMMON.DELETE' | translate}}"
ng-click="vm.delete()" ng-click="vm.delete()"