Skip to content

Commit 151d0f6

Browse files
authored
Merge pull request #478 from cap-java/revrtChngsToDisblUploadBtn
Revert changes to disable upload button when max count is reached
2 parents 6958dcf + 8d51b0d commit 151d0f6

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

cap-notebook/demoapp/db/schema.cds

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ stock : Integer;
1616
price : Decimal;
1717
currency : Currency;
1818
image : LargeBinary @Core.MediaType: 'image/png';
19-
isAttachmentsUploadable : Boolean default true;
20-
isReferencesUploadable : Boolean default true;
2119

2220
// top-level chapters composition (root of the nested hierarchy)
2321
cHapters : Composition of many Chapters on cHapters.book = $self;
@@ -75,7 +73,6 @@ entity Notebooks : managed, cuid {
7573
price : Decimal;
7674
currency : Currency;
7775
image : LargeBinary @Core.MediaType: 'image/png';
78-
isAttachmentsUploadable : Boolean default true;
7976
}
8077

8178
entity Pages : cuid, managed {

cap-notebook/demoapp/srv/admin-service.cds

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ service AdminService @(requires: ['admin','system-user']) {
4343
action changelog() returns String;
4444
action downloadSelectedAttachments(ids: String) returns String;
4545
};
46-
annotate AdminService.Books.attachments with @(
47-
Capabilities: {InsertRestrictions: {Insertable: up_.isAttachmentsUploadable}}
48-
);
4946

5047
entity Books.references as projection on my.Books.references
5148
actions {
@@ -78,9 +75,6 @@ service AdminService @(requires: ['admin','system-user']) {
7875
action changelog() returns String;
7976
action downloadSelectedAttachments(ids: String) returns String;
8077
};
81-
annotate AdminService.Books.references with @(
82-
Capabilities: {InsertRestrictions: {Insertable: up_.isReferencesUploadable}}
83-
);
8478

8579
entity Books.footnotes as projection on my.Books.footnotes
8680
actions {

0 commit comments

Comments
 (0)