reimplemented header navbar toggle using redux

This commit is contained in:
Art Lowel
2016-12-12 14:57:07 +01:00
parent 9aa74b863e
commit 69f8d9855a
8 changed files with 123 additions and 13 deletions

View File

@@ -0,0 +1,26 @@
import { Injectable } from "@angular/core";
import { Action } from "@ngrx/store";
@Injectable()
export class HeaderActions {
static COLLAPSE = 'dspace/header/COLLAPSE';
collapse(): Action {
return {
type: HeaderActions.COLLAPSE
}
}
static EXPAND = 'dspace/header/EXPAND';
expand(): Action {
return {
type: HeaderActions.EXPAND
}
}
static TOGGLE = 'dspace/header/TOGGLE';
toggle(): Action {
return {
type: HeaderActions.TOGGLE
}
}
}