diff --git a/src/Eagle.ts b/src/Eagle.ts index 4d2a3e97..747859c3 100644 --- a/src/Eagle.ts +++ b/src/Eagle.ts @@ -2302,6 +2302,8 @@ export class Eagle { const graphConfig = GraphConfig.fromJson(dataObject, errorsWarnings); this.graphConfig(graphConfig); + this._handleLoadingErrors(errorsWarnings, file.name, file.repository.service); + this.rightWindow().mode(Eagle.RightWindowMode.TranslationMenu); } diff --git a/src/Repositories.ts b/src/Repositories.ts index 0d6c5706..b8bd12ca 100644 --- a/src/Repositories.ts +++ b/src/Repositories.ts @@ -32,7 +32,7 @@ export class Repositories { static selectFile(file : RepositoryFile) : void { const eagle: Eagle = Eagle.getInstance(); - if(file.type === Eagle.FileType.Graph || file.type === Eagle.FileType.JSON){ + if(file.type === Eagle.FileType.Graph || file.type === Eagle.FileType.JSON || file.type === Eagle.FileType.GraphConfig){ eagle.showEagleIsLoading() } @@ -50,6 +50,9 @@ export class Repositories { case Eagle.FileType.JSON: isModified = eagle.logicalGraph().fileInfo().modified; break; + case Eagle.FileType.GraphConfig: + isModified = eagle.graphConfig().fileInfo().modified; + break; } // if the file is modified, get the user to confirm they want to overwrite changes