1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 14:19:43 +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

File diff suppressed because one or more lines are too long

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;
}
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) {

View file

@ -3,6 +3,8 @@
<div class="upload-document-files">
<div id="upload-document-files" class="btn btn-secondary text-uppercase font-weight-bold">+ Attachments</div>
</div>
{{else}}
<div class="margin-top-50" />
{{/if}}
{{#if hasAttachments}}
<ul class="list">