From a163372fc5b8520e523862e03cb650355e6928e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Fri, 8 Jan 2016 19:29:55 +0100 Subject: [PATCH] Hide delete icon if attachments are not editable --- app/modules/components/attachment/attachment-gallery.jade | 1 + 1 file changed, 1 insertion(+) diff --git a/app/modules/components/attachment/attachment-gallery.jade b/app/modules/components/attachment/attachment-gallery.jade index a911f56a..dbb353b1 100644 --- a/app/modules/components/attachment/attachment-gallery.jade +++ b/app/modules/components/attachment/attachment-gallery.jade @@ -30,6 +30,7 @@ span {{::vm.attachment.getIn(['file', 'name'])}} a.icon-delete( + ng-if="vm.attachment.get('editable')" href="" title="{{'COMMON.DELETE' | translate}}" ng-click="vm.delete()"