From 702c3245bdd250c82c7b4af227318816741a33d0 Mon Sep 17 00:00:00 2001 From: Christian Georgi Date: Mon, 10 May 2021 10:29:33 +0200 Subject: [PATCH] Fix broken translation UI Use `Books.texts` instead of `_texts`, requiring sap/cds 5 --- fiori/app/admin/fiori-service.cds | 4 ++-- fiori/package.json | 2 +- orders/package.json | 2 +- reviews/package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fiori/app/admin/fiori-service.cds b/fiori/app/admin/fiori-service.cds index 8e97fdbe..d1c2b50a 100644 --- a/fiori/app/admin/fiori-service.cds +++ b/fiori/app/admin/fiori-service.cds @@ -70,7 +70,7 @@ annotate AdminService.Authors with @( annotate sap.capire.bookshop.Books with @fiori.draft.enabled; annotate AdminService.Books with @odata.draft.enabled; -annotate AdminService.Books_texts with @( +annotate AdminService.Books.texts with @( UI: { Identification: [{Value:title}], SelectionFields: [ locale, title ], @@ -83,7 +83,7 @@ annotate AdminService.Books_texts with @( ); // Add Value Help for Locales -annotate AdminService.Books_texts { +annotate AdminService.Books.texts { locale @ValueList:{entity:'Languages',type:#fixed} } // In addition we need to expose Languages through AdminService diff --git a/fiori/package.json b/fiori/package.json index 414541d3..2e4e62cf 100644 --- a/fiori/package.json +++ b/fiori/package.json @@ -6,7 +6,7 @@ "@capire/reviews": "*", "@capire/orders": "*", "@capire/common": "*", - "@sap/cds": ">=4", + "@sap/cds": "^5", "express": "^4.17.1", "passport": "^0.4.1" }, diff --git a/orders/package.json b/orders/package.json index 87cd62cd..7415f469 100644 --- a/orders/package.json +++ b/orders/package.json @@ -2,6 +2,6 @@ "name": "@capire/orders", "version": "1.0.0", "dependencies": { - "@sap/cds": ">=4.3.0" + "@sap/cds": "^5" } } \ No newline at end of file diff --git a/reviews/package.json b/reviews/package.json index 746d279e..b91edfba 100644 --- a/reviews/package.json +++ b/reviews/package.json @@ -7,7 +7,7 @@ "index.cds" ], "dependencies": { - "@sap/cds": ">=4", + "@sap/cds": "^5", "express": "^4.17.1" }, "scripts": {