Skip to content

Commit 2953427

Browse files
committed
Add spacing to attachments view
1 parent 03be1ce commit 2953427

File tree

3 files changed

+683
-675
lines changed

3 files changed

+683
-675
lines changed

embed/bindata_assetfs.go

+670-670
Large diffs are not rendered by default.

gui/app/components/document/settings-general.js

+11-5
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,19 @@ export default Component.extend(Notifier, {
2525
let constants = this.get('constants');
2626
let permissions = this.get('permissions');
2727

28-
if (permissions.get('documentEdit') && this.get('document.protection') !== constants.ProtectionType.None) {
29-
return false;
30-
} else if (permissions.get('documentApprove') && this.get('document.protection') === constants.ProtectionType.Review) {
31-
return false;
28+
if (!permissions.get('documentEdit')) {
29+
return true;
3230
}
3331

34-
return true;
32+
if (!permissions.get('documentApprove') && this.get('document.protection') === constants.ProtectionType.Review) {
33+
return true;
34+
}
35+
36+
if (this.get('document.protection') === constants.ProtectionType.Lock) {
37+
return true;
38+
}
39+
40+
return false;
3541
}),
3642

3743
keyUp(e) {

gui/app/templates/components/document/view-attachment.hbs

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<div class="upload-document-files">
44
<div id="upload-document-files" class="btn btn-secondary text-uppercase font-weight-bold">+ Attachments</div>
55
</div>
6+
{{else}}
7+
<div class="margin-top-50" />
68
{{/if}}
79
{{#if hasAttachments}}
810
<ul class="list">

0 commit comments

Comments
 (0)