mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
Add spacing to attachments view
This commit is contained in:
parent
03be1ce904
commit
29534273b8
3 changed files with 683 additions and 675 deletions
File diff suppressed because one or more lines are too long
|
@ -25,13 +25,19 @@ export default Component.extend(Notifier, {
|
||||||
let constants = this.get('constants');
|
let constants = this.get('constants');
|
||||||
let permissions = this.get('permissions');
|
let permissions = this.get('permissions');
|
||||||
|
|
||||||
if (permissions.get('documentEdit') && this.get('document.protection') !== constants.ProtectionType.None) {
|
if (!permissions.get('documentEdit')) {
|
||||||
return false;
|
return true;
|
||||||
} else if (permissions.get('documentApprove') && this.get('document.protection') === constants.ProtectionType.Review) {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!permissions.get('documentApprove') && this.get('document.protection') === constants.ProtectionType.Review) {
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.get('document.protection') === constants.ProtectionType.Lock) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
keyUp(e) {
|
keyUp(e) {
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
<div class="upload-document-files">
|
<div class="upload-document-files">
|
||||||
<div id="upload-document-files" class="btn btn-secondary text-uppercase font-weight-bold">+ Attachments</div>
|
<div id="upload-document-files" class="btn btn-secondary text-uppercase font-weight-bold">+ Attachments</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{else}}
|
||||||
|
<div class="margin-top-50" />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if hasAttachments}}
|
{{#if hasAttachments}}
|
||||||
<ul class="list">
|
<ul class="list">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue