Skip to content

Commit

Permalink
fix(mounts-manager): fix isLoading undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonH committed Jul 7, 2020
1 parent f57d8b7 commit 922ebab
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/app/pages/mounts/mounts.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import { MountsService } from './mounts.service';
nbInput
fullWidth
fieldSize="small"
placeholder="remote path to be mounted"
placeholder="remote path to be mounted ([remote]:[path])"
[(ngModel)]="newMount.fs"
/>
</th>
Expand Down Expand Up @@ -152,6 +152,13 @@ export class MountsComponent implements OnInit, OnDestroy {
}

ngOnInit() {
this.configuration = { ...DefaultConfig };
this.configuration.searchEnabled = false;
this.configuration.isLoading = true;

this.options = ['mount', 'cmount', 'mount2'];
this.filteredOptions$ = of(this.options);

this.scrb.push(
this.mountService.list$.getOutput().subscribe(node => {
this.configuration.isLoading = false;
Expand Down Expand Up @@ -202,13 +209,6 @@ export class MountsComponent implements OnInit, OnDestroy {
})
);
this.refresh();

this.configuration = { ...DefaultConfig };
this.configuration.searchEnabled = false;
this.configuration.isLoading = true;

this.options = ['mount', 'cmount', 'mount2'];
this.filteredOptions$ = of(this.options);
}

ngOnDestroy() {
Expand Down

0 comments on commit 922ebab

Please sign in to comment.