diff --git a/src/app/big-file-loading/big-file-loading.component.html b/src/app/big-file-loading/big-file-loading.component.html
index 88e57fb..40ead21 100644
--- a/src/app/big-file-loading/big-file-loading.component.html
+++ b/src/app/big-file-loading/big-file-loading.component.html
@@ -1,29 +1,44 @@
- Loading very large reports may take more than a minute...
-
+
Loading very large reports may take more than a minute...
+
diff --git a/src/app/big-file-loading/big-file-loading.component.scss b/src/app/big-file-loading/big-file-loading.component.scss
index 8fa74d3..ac2fa01 100644
--- a/src/app/big-file-loading/big-file-loading.component.scss
+++ b/src/app/big-file-loading/big-file-loading.component.scss
@@ -12,6 +12,6 @@
font-family: verdana;
font-size: 0.8rem;
svg {
- margin-top: 1rem;
+ margin-left: 2rem;
}
}
diff --git a/src/app/big-file-loading/big-file-loading.component.ts b/src/app/big-file-loading/big-file-loading.component.ts
index 58d5d23..feba410 100644
--- a/src/app/big-file-loading/big-file-loading.component.ts
+++ b/src/app/big-file-loading/big-file-loading.component.ts
@@ -11,6 +11,7 @@ export class BigFileLoadingComponent {
private fileLoaderSub?: Subscription;
visible: boolean = false;
+ isTextVisible: boolean = false;
constructor(
public fileSystemService: FileSystemService,
@@ -24,11 +25,14 @@ export class BigFileLoadingComponent {
ngOnInit(): void {
this.fileLoaderSub = this.fileSystemService.fileLoader$.subscribe(
(data: any) => {
- if (data?.isBigJsonFile && data?.isLoadingDatas) {
+ if (data?.isLoadingDatas) {
this.visible = true;
} else {
this.visible = false;
}
+ if (data?.isBigJsonFile) {
+ this.isTextVisible = true;
+ }
this.cdr.detectChanges();
}
);
diff --git a/src/app/core/services/file-system.service.ts b/src/app/core/services/file-system.service.ts
index 26e3637..ff7e0a8 100644
--- a/src/app/core/services/file-system.service.ts
+++ b/src/app/core/services/file-system.service.ts
@@ -114,6 +114,7 @@ export class FileSystemService {
this.fileLoaderDatas.datas = undefined;
this.fileLoaderDatas.isLoadingDatas = true;
this.fileLoaderDatas.isBigJsonFile = false;
+ this._fileLoaderSub.next(this.fileLoaderDatas);
return new Promise((resolve, reject) => {
this.electronService.fs.stat(filename, (err, stats) => {
@@ -179,7 +180,6 @@ export class FileSystemService {
this.fileLoaderDatas.datas = JSON.parse(datas);
this.fileLoaderDatas.datas.filename = filename;
this._fileLoaderSub.next(this.fileLoaderDatas);
-
resolve(this.fileLoaderDatas.datas);
}
}