Skip to content

Commit

Permalink
feat(file-mode): enable refresh list
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonH committed Jun 3, 2020
1 parent 8fedf35 commit 736add0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/pages/manager/fileMode/fileMode.component.ts
Expand Up @@ -28,6 +28,7 @@ export class FileModeComponent implements OnInit {
@ViewChild(ListViewComponent) listView: ListViewComponent;

refresh() {
this.list$.clearCache();
this.listTrigger.next(1);
}
manipulate(o: IManipulate) {
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/manager/homeMode/homeMode.component.ts
Expand Up @@ -33,6 +33,7 @@ export class HomeModeComponent implements OnInit {
remotes$: ListRemotesFlow;

refresh() {
this.remotes$.clearCache();
this.remotesTrigger.next(1);
}
ngOnInit() {
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/manager/manager.component.ts
Expand Up @@ -198,6 +198,7 @@ export class ManagerComponent implements OnInit {
isMobile = false;
refresh() {
if (this.homeMode) this.home.refresh();
else if (this.fileMode) this.file.refresh();
}

addrJump(addr: NavigationFlowOutNode) {
Expand Down

0 comments on commit 736add0

Please sign in to comment.