1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 06:09:42 +02:00

Add spacing to attachments view

This commit is contained in:
McMatts 2018-06-17 14:50:43 +01:00
parent 03be1ce904
commit 29534273b8
3 changed files with 683 additions and 675 deletions

View file

@ -25,13 +25,19 @@ export default Component.extend(Notifier, {
let constants = this.get('constants');
let permissions = this.get('permissions');
if (permissions.get('documentEdit') && this.get('document.protection') !== constants.ProtectionType.None) {
return false;
} else if (permissions.get('documentApprove') && this.get('document.protection') === constants.ProtectionType.Review) {
return false;
if (!permissions.get('documentEdit')) {
return true;
}
return true;
if (!permissions.get('documentApprove') && this.get('document.protection') === constants.ProtectionType.Review) {
return true;
}
if (this.get('document.protection') === constants.ProtectionType.Lock) {
return true;
}
return false;
}),
keyUp(e) {