diff --git a/app/appconfig/fioriSandboxConfig.json b/app/appconfig/fioriSandboxConfig.json index aae8e77..dedcb15 100644 --- a/app/appconfig/fioriSandboxConfig.json +++ b/app/appconfig/fioriSandboxConfig.json @@ -18,14 +18,6 @@ "title": "Browse Books", "targetURL": "#Books-display" } - }, - { - "id": "BrowseGenres", - "tileType": "sap.ushell.ui.tile.StaticTile", - "properties": { - "title": "Browse Genres", - "targetURL": "#Genres-display" - } } ] }, @@ -52,6 +44,14 @@ "targetURL": "#Authors-manage" } }, + { + "id": "ManageGenres", + "tileType": "sap.ushell.ui.tile.StaticTile", + "properties": { + "title": "Manage Genres", + "targetURL": "#Genres-manage" + } + }, { "id": "ManageOrders", "tileType": "sap.ushell.ui.tile.StaticTile", @@ -114,10 +114,10 @@ "url": "/admin-authors/webapp" } }, - "BrowseGenres": { + "ManageGenres": { "semanticObject": "Genres", - "action": "display", - "title": "Browse Genres", + "action": "manage", + "title": "Manage Genres", "signature": { "parameters": { "Genre.ID": { diff --git a/app/genres/fiori-service.cds b/app/genres/fiori-service.cds index 27a1079..59b0b54 100644 --- a/app/genres/fiori-service.cds +++ b/app/genres/fiori-service.cds @@ -1,7 +1,10 @@ using { sap.capire.bookshop.Genres } from '@capire/bookshop'; +annotate AdminService.Genres with @odata.draft.enabled; +// needed for changing a parent +annotate AdminService.Genres with @odata.draft.bypass; + annotate Genres with @cds.search: {name}; -annotate Genres with @readonly; annotate Genres with { name @title: '{i18n>Genre}'; } diff --git a/app/genres/webapp/i18n/i18n.properties b/app/genres/webapp/i18n/i18n.properties index 42da067..ebbb467 100644 --- a/app/genres/webapp/i18n/i18n.properties +++ b/app/genres/webapp/i18n/i18n.properties @@ -1,4 +1,4 @@ #XTIT -appTitle=Browse Genres +appTitle=Manage Genres #XTXT appDescription=Genres as Tree View diff --git a/app/genres/webapp/i18n/i18n_de.properties b/app/genres/webapp/i18n/i18n_de.properties index e8714e9..9d0cacf 100644 --- a/app/genres/webapp/i18n/i18n_de.properties +++ b/app/genres/webapp/i18n/i18n_de.properties @@ -1,2 +1,2 @@ -appTitle=Zeige Genres +appTitle=Verwalte Genres appDescription=Genres als Baumansicht