-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(loading): loading and shared notification added
* feat(loading): loading works * fix(loading): for add graph * fix(loading): added loading for category * fix(loading): added loading for data analysis * fix(loading): fixed graph section and added a notification for everything with a shared file * fix(loading): added loading for shared modules * fix(loading): added loading to user modules * fix(add-user): fixed add user roles * fix(code): deleted unnecesary logs
- Loading branch information
Showing
28 changed files
with
390 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
:host { | ||
.loading { | ||
position: "fixed"; | ||
position: fixed; | ||
z-index: 3; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
import { Component } from '@angular/core'; | ||
import { Component, OnInit } from '@angular/core'; | ||
import { LoadingService } from './shared/services/loading.service'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
styleUrl: './app.component.scss', | ||
}) | ||
export class AppComponent { | ||
export class AppComponent implements OnInit { | ||
displayLoading = 'none'; | ||
//block | ||
|
||
constructor(private loadingService: LoadingService) {} | ||
|
||
ngOnInit() { | ||
this.loadingService.loading$.subscribe( | ||
(data) => (this.displayLoading = data ? 'block' : 'none') | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.