Removing workaround for glitch in drafts (#254)

* Removing workaround for glitch in drafts

* cosmetics
This commit is contained in:
Daniel Hutzel
2021-08-02 17:20:46 +02:00
committed by GitHub
parent cd3aad59e1
commit e1052c209b

View File

@@ -1,4 +1,4 @@
using { AdminService, sap.capire.bookshop } from '../../db/schema';
using { AdminService } from '../../db/schema';
using from '../common'; // to help UI linter get the complete annotations
////////////////////////////////////////////////////////////////////////////
@@ -87,9 +87,8 @@ annotate AdminService.Books.texts with @(
annotate AdminService.Books.texts {
locale @ValueList:{entity:'Languages',type:#fixed}
}
// In addition we need to expose Languages and Books.texts through AdminService
// In addition we need to expose Languages through AdminService as a target for ValueList
using { sap } from '@sap/cds/common';
extend service AdminService {
entity Languages as projection on sap.common.Languages;
entity Books.texts as projection on bookshop.Books.texts;
@readonly entity Languages as projection on sap.common.Languages;
}