mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 04:25:08 +00:00
Merge branch 'master' into skeleton
This commit is contained in:
commit
dcb8032758
|
@ -3,6 +3,7 @@ import { style, animate, AnimationBuilder, AnimationPlayer } from '@angular/anim
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
import { FuseConfigService } from '../../services/config.service';
|
import { FuseConfigService } from '../../services/config.service';
|
||||||
import { fuseAnimations } from '../../animations';
|
import { fuseAnimations } from '../../animations';
|
||||||
|
import { FuseNavigationService } from '../navigation/navigation.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector : 'fuse-theme-options',
|
selector : 'fuse-theme-options',
|
||||||
|
@ -26,6 +27,7 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
||||||
constructor(
|
constructor(
|
||||||
private animationBuilder: AnimationBuilder,
|
private animationBuilder: AnimationBuilder,
|
||||||
private fuseConfig: FuseConfigService,
|
private fuseConfig: FuseConfigService,
|
||||||
|
private navigationService: FuseNavigationService,
|
||||||
private renderer: Renderer2
|
private renderer: Renderer2
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -38,6 +40,27 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy
|
||||||
this.fuseSettings = newSettings;
|
this.fuseSettings = newSettings;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Get the nav model and add customize nav item
|
||||||
|
// that opens the bar programmatically
|
||||||
|
const navModel = this.navigationService.getNavigationModel();
|
||||||
|
|
||||||
|
navModel.push({
|
||||||
|
'id' : 'custom-function',
|
||||||
|
'title' : 'Custom Function',
|
||||||
|
'type' : 'group',
|
||||||
|
'children': [
|
||||||
|
{
|
||||||
|
'id' : 'customize',
|
||||||
|
'title' : 'Customize',
|
||||||
|
'type' : 'item',
|
||||||
|
'icon' : 'settings',
|
||||||
|
'function': () => {
|
||||||
|
this.openBar();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit()
|
ngOnInit()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user