Skip to content

Commit

Permalink
fixed (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnchartedBull committed Nov 4, 2019
1 parent 365d8e7 commit a37e0c0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/app/files/files.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class FilesComponent {
private service: AppService,
private router: Router,
private jobService: JobService) {
this.showLoader();
this.currentFolder = '/';
this.openFolder(this.currentFolder);
}
Expand All @@ -42,13 +43,7 @@ export class FilesComponent {

public openFolder(folderPath: string): void {
setTimeout(() => {
this.spinner.show(undefined, {
bdColor: '#353b48',
color: '#f5f6fa',
size: 'medium',
type: 'pacman',
fullScreen: false
});
this.showLoader();
this.folderContent = null;
this.filesService.getFolder(folderPath).then(
(data) => {
Expand Down Expand Up @@ -95,4 +90,14 @@ export class FilesComponent {
this.openFolder(this.currentFolder);
}, 300);
}

private showLoader(): void {
this.spinner.show(undefined, {
bdColor: '#353b48',
color: '#f5f6fa',
size: 'medium',
type: 'pacman',
fullScreen: false
});
}
}

0 comments on commit a37e0c0

Please sign in to comment.