Removing workaround for glitch in drafts (#254)
* Removing workaround for glitch in drafts * cosmetics
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user