mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-25 17:34:08 +01:00
app state
This commit is contained in:
parent
e6be0e4519
commit
38e1c6cfa3
8 changed files with 62 additions and 57 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import {Component, ViewEncapsulation} from '@angular/core';
|
||||
|
||||
import {ThemeGlobal} from '../../../theme';
|
||||
import {AppState} from '../../../app.state';
|
||||
import {ProfilePicturePipe} from '../../pipes';
|
||||
import {MsgCenter} from '../../components/msgCenter';
|
||||
import {ScrollPosition} from '../../directives';
|
||||
|
|
@ -18,12 +18,12 @@ export class PageTop {
|
|||
isMenuCollapsed:boolean = false;
|
||||
|
||||
|
||||
constructor(private _themeGlobal:ThemeGlobal) {
|
||||
constructor(private _state:AppState) {
|
||||
}
|
||||
|
||||
toggleMenu() {
|
||||
this.isMenuCollapsed = !this.isMenuCollapsed;
|
||||
this._themeGlobal.setData('menu.isCollapsed', this.isMenuCollapsed);
|
||||
this._state.notifyDataChanged('menu.isCollapsed', this.isMenuCollapsed);
|
||||
}
|
||||
|
||||
scrolledChanged(isScrolled) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue