Codebase improvements

This commit is contained in:
Sercan Yemen 2018-05-29 15:07:13 +03:00
parent 70d895c6ed
commit 387077882b
2 changed files with 13 additions and 7 deletions

View File

@ -16,7 +16,7 @@ export class FuseSearchBarComponent implements OnInit, OnDestroy
toolbarColor: string; toolbarColor: string;
@Output() @Output()
onInput: EventEmitter<any> = new EventEmitter(); onInput: EventEmitter<any>;
// Private // Private
private _unsubscribeAll: Subject<any>; private _unsubscribeAll: Subject<any>;
@ -31,6 +31,7 @@ export class FuseSearchBarComponent implements OnInit, OnDestroy
) )
{ {
// Set the defaults // Set the defaults
this.onInput = new EventEmitter();
this.collapsed = true; this.collapsed = true;
// Set the private defaults // Set the private defaults

View File

@ -15,11 +15,11 @@ import { FuseConfigService } from '@fuse/services/config.service';
}) })
export class FuseShortcutsComponent implements OnInit, OnDestroy export class FuseShortcutsComponent implements OnInit, OnDestroy
{ {
shortcutItems: any[] = []; shortcutItems: any[];
navigationItems: any[]; navigationItems: any[];
filteredNavigationItems: any[]; filteredNavigationItems: any[];
searching = false; searching: boolean;
mobileShortcutsPanelActive = false; mobileShortcutsPanelActive: boolean;
toolbarColor: string; toolbarColor: string;
@Input() @Input()
@ -45,14 +45,19 @@ export class FuseShortcutsComponent implements OnInit, OnDestroy
* @param {ObservableMedia} _observableMedia * @param {ObservableMedia} _observableMedia
*/ */
constructor( constructor(
private _renderer: Renderer2,
private _cookieService: CookieService, private _cookieService: CookieService,
private _fuseConfigService: FuseConfigService,
private _fuseMatchMediaService: FuseMatchMediaService, private _fuseMatchMediaService: FuseMatchMediaService,
private _fuseNavigationService: FuseNavigationService, private _fuseNavigationService: FuseNavigationService,
private _fuseConfigService: FuseConfigService, private _observableMedia: ObservableMedia,
private _observableMedia: ObservableMedia private _renderer: Renderer2
) )
{ {
// Set the defaults
this.shortcutItems = [];
this.searching = false;
this.mobileShortcutsPanelActive = false;
// Set the private defaults // Set the private defaults
this._unsubscribeAll = new Subject(); this._unsubscribeAll = new Subject();
} }