Skip to content

Commit

Permalink
Make sure a notficiation message is shown when loading a graph config
Browse files Browse the repository at this point in the history
  • Loading branch information
james-strauss-uwa committed Aug 7, 2024
1 parent 9bbc449 commit 19a7af6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Eagle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
5 changes: 4 additions & 1 deletion src/Repositories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand All @@ -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
Expand Down

0 comments on commit 19a7af6

Please sign in to comment.