Skip to content

Commit 4890545

Browse files
committed
Invert property
1 parent 6fd64a8 commit 4890545

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/admin/fiori-service.cds

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ annotate AdminService.Books with @(UI : {
4141
$Type : 'UI.ReferenceFacet',
4242
Label : '{i18n>Contents}',
4343
Target : 'contents/@UI.PresentationVariant',
44-
@UI.Hidden: {$edmJson: { $Not: { $Path: '/Info/treeTableSupport' }}}
44+
@UI.Hidden: { $edmJson: { $Path: '/Info/hideTreeTable' } }
4545
}
4646
],
4747
FieldGroup #General : {Data : [

srv/admin-service.cds

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ service AdminService @(requires: 'admin') {
4141

4242
@cds.persistence.skip
4343
@readonly entity Info @odata.singleton {
44-
treeTableSupport: Boolean;
44+
hideTreeTable: Boolean;
4545
}
4646
}
4747

srv/src/main/java/my/bookshop/handlers/AdminServiceHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public void restoreCoversUpId(CqnStructuredTypeRef ref, BooksCovers cover) {
307307
@On(event = CqnService.EVENT_READ, entity = Info_.CDS_NAME)
308308
public Info readInfo(CdsReadEventContext context) {
309309
Info info = Info.create();
310-
info.setTreeTableSupport(env.matchesProfiles("cloud"));
310+
info.setHideTreeTable(!env.matchesProfiles("cloud"));
311311
return info;
312312
}
313313

0 commit comments

Comments
 (0)