Skip to content

Commit

Permalink
fix sidebar menu (#180)
Browse files Browse the repository at this point in the history
* fix sidebar menu

* arrange code

* Remove first character on referenced Aspect Model filename

---------

Co-authored-by: Michele Santoro <[email protected]>
  • Loading branch information
larisaVasile and michelu89 authored Apr 8, 2024
1 parent ccccf94 commit 3962382
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/apps/ame/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions core/libs/rdf/src/lib/services/rdf.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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<RdfModel[]> {
Expand Down

0 comments on commit 3962382

Please sign in to comment.