Skip to content

Commit 70b5e5d

Browse files
committed
fixing issues with folder browser on windows
1 parent f0d3394 commit 70b5e5d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

quick-start/src/main/ui/app/folder-browser/folder-browser.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="container">
22
<div class="current-folder" flex layout="column">
3-
<mdl-textfield type="text" label="Current Folder" [(value)]="currentPath" floating-label></mdl-textfield>
3+
<mdl-textfield type="text" label="Current Folder" [(value)]="currentPath" (keydown)="onFolderChange($event)" floating-label></mdl-textfield>
44
</div>
55
<div class="foldertree-container">
66
<div *ngIf="isLoading" layout="row" layout-sm="column" class="ajax-progress" layout-align="center start">

quick-start/src/main/ui/app/folder-browser/folder-browser.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export class FolderBrowserComponent implements OnInit, OnChanges {
2626
this.inputPath.registerOnChange((value: string) => {
2727
if (this.currentPath !== value) {
2828
this.currentPath = value;
29-
this.getFolders(this.currentPath, true);
3029
}
3130
});
3231
}
@@ -37,6 +36,12 @@ export class FolderBrowserComponent implements OnInit, OnChanges {
3736
}
3837
}
3938

39+
onFolderChange(event: KeyboardEvent) {
40+
if (event.keyCode === 13) {
41+
this.getFolders(this.currentPath, true);
42+
}
43+
}
44+
4045
getFolders(path: string, emit: boolean): void {
4146
if (path) {
4247
this.isLoading = true;

0 commit comments

Comments
 (0)