From 39623824f01c498462d2b64984e0ca617e89c44e Mon Sep 17 00:00:00 2001 From: larisaVasile Date: Mon, 8 Apr 2024 18:36:01 +0300 Subject: [PATCH] fix sidebar menu (#180) * fix sidebar menu * arrange code * Remove first character on referenced Aspect Model filename --------- Co-authored-by: Michele Santoro --- core/apps/ame/src/assets/i18n/en.json | 2 +- core/libs/rdf/src/lib/services/rdf.service.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/apps/ame/src/assets/i18n/en.json b/core/apps/ame/src/assets/i18n/en.json index 2243b3d8..86366f26 100644 --- a/core/apps/ame/src/assets/i18n/en.json +++ b/core/apps/ame/src/assets/i18n/en.json @@ -28,7 +28,7 @@ "ERROR": "SAMM Version upgrade to {{version}} finished, but {{fileCount}} had to be skipped. Please fix {{fileCountMessage}} first (in a text editor, contacting us, or in a previous version of the editor that supports the original SAMM version that has to be temporarily installed). See below:", "SUCCESS": "Migration finished with success", "CLOSE": "Close", - "VERSION": "Migrate Version" + "VERSION": "Increase Version" }, "WORKSPACE_MIGRATION_DIALOG": { "TITLE": "Migrate Workspace to SAMM", diff --git a/core/libs/rdf/src/lib/services/rdf.service.ts b/core/libs/rdf/src/lib/services/rdf.service.ts index ac389fff..b67e6492 100644 --- a/core/libs/rdf/src/lib/services/rdf.service.ts +++ b/core/libs/rdf/src/lib/services/rdf.service.ts @@ -53,7 +53,7 @@ export class RdfService { window['angular.rdfService'] = this; } - this._rdfSerializer = new RdfSerializerService(translation); + this._rdfSerializer = new RdfSerializerService(this.translation); this._settings = this.configurationService.getSettings(); } @@ -170,7 +170,8 @@ export class RdfService { const path = window.require('path'); fileName = fileName.includes(path.sep) ? `${urn.replace('#', ':')}${path.basename(fileName)}` : fileName; } - return fileName; + + return fileName.charAt(0) === '/' ? fileName.substring(1) : fileName; } parseModels(fileContentModels: FileContentModel[]): Observable {