Skip to content

Commit

Permalink
Merge pull request #325 from zowe/bugfix/openInEditor2TheRedo
Browse files Browse the repository at this point in the history
Fix App2App Timing Issues With File Tree Operations
  • Loading branch information
DivergentEuropeans authored Apr 12, 2023
2 parents cae7cba + 86e7c41 commit 194fd6d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions webClient/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webClient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@angular/router": "~12.0.0",
"@types/node": "~8.10.59",
"@zlux/widgets": "git+https://github.com/zowe/zlux-widgets.git#feature/upgrade-angular",
"@zowe/zlux-angular-file-tree": "1.5.0-RC1",
"@zowe/zlux-angular-file-tree": "1.6.0-RC1",
"angular2-template-loader": "~0.6.2",
"codelyzer": "~5.1.0",
"compression-webpack-plugin": "~6.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ export class ProjectTreeComponent {
private codeEditorService: EditorService,
@Inject(Angular2InjectionTokens.LOGGER) private log: ZLUX.ComponentLogger,
@Inject(Angular2InjectionTokens.PLUGIN_DEFINITION) private pluginDefinition: ZLUX.ContainerPluginDefinition) {
}

ngOnInit(){
this.editorControl.projectNode.subscribe((nodes) => {
this.nodes = nodes;
});
Expand Down Expand Up @@ -126,8 +128,10 @@ export class ProjectTreeComponent {
this.editorControl.initProjectContext(projectName, this.nodes);
});
}
});
});
}

ngAfterViewInit(){
this.editorControl.openDirectory.subscribe(dirName => {
if(dirName) {
if (dirName.startsWith('/')) {
Expand All @@ -136,10 +140,9 @@ export class ProjectTreeComponent {
} else {
let dsName = this.utils.getDatasetName(dirName);
this.fileExplorer.updateDSList(dsName);
}
}
}
});

this.editorControl.openDataset.subscribe(datasetInfo => {
console.log('Dataset Info: ', datasetInfo);
let dirName = datasetInfo.datasetName;
Expand Down

0 comments on commit 194fd6d

Please sign in to comment.