Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Apr 25, 2019
1 parent 88bb921 commit aa2ed22
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { BehaviorSubject, Observable } from 'rxjs';
import { buffer, debounceTime, filter, map } from 'rxjs/operators';

import { ActionHistoryDump } from '../../../../../store/src/actions/action-history.actions';
import { ToggleSideNav } from '../../../../../store/src/actions/dashboard-actions';
import { AppState } from '../../../../../store/src/app-state';
import { Customizations, CustomizationsMetadata } from '../../../core/customizations.types';
import { ISubHeaderTabs } from '../../../shared/components/page-subheader/page-subheader.types';
import { ToggleSideNav } from '../../../../../store/src/actions/dashboard-actions';


export const SIDENAV_COPYRIGHT = new InjectionToken<string>('Optional copyright string for side nav');
Expand Down Expand Up @@ -39,9 +39,6 @@ export class SideNavComponent implements OnInit {
private store: Store<AppState>,
@Inject(Customizations) public customizations: CustomizationsMetadata
) { }

@Input() tabs: SideNavItem[];
@Output() changedMode = new EventEmitter();
@Input() set iconMode(isIconMode: boolean) {
if (isIconMode !== this.isIconMode) {
this.isIconMode = isIconMode;
Expand All @@ -51,15 +48,18 @@ export class SideNavComponent implements OnInit {
get iconMode() {
return this.isIconMode;
}

@Input() tabs: SideNavItem[];
@Output() changedMode = new EventEmitter();
private isIconMode = true;

// Button is not always visible on load, so manually push through an event
logoClicked: BehaviorSubject<any> = new BehaviorSubject(true);

public toggleSidenav() {
this.store.dispatch(new ToggleSideNav());
}

// Button is not always visible on load, so manually push through an event
logoClicked: BehaviorSubject<any> = new BehaviorSubject(true);

ngOnInit() {
const toLength = a => a.length;
const debounced$ = this.logoClicked.pipe(debounceTime(250)); // debounce the click stream
Expand Down

0 comments on commit aa2ed22

Please sign in to comment.