mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-21 00:36:11 +01:00
baThemeRun refactoring
This commit is contained in:
parent
5f360a73a8
commit
11c9a3d239
1 changed files with 4 additions and 4 deletions
|
|
@ -13,17 +13,17 @@ export class BaThemeRun {
|
|||
constructor(private _baConfig:BaThemeConfigProvider) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
public ngOnInit():void {
|
||||
this._assignBlur();
|
||||
this._assingMobile();
|
||||
this._assignMobile();
|
||||
}
|
||||
|
||||
// TODO: assign any theme class, not only hardcoded blur
|
||||
private _assignBlur() {
|
||||
private _assignBlur():void {
|
||||
this.isBlur = this._baConfig.get().theme.blur;
|
||||
}
|
||||
|
||||
private _assingMobile() {
|
||||
private _assignMobile():void {
|
||||
this.isMobile = isMobile();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue