mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
reimplemented header navbar toggle using redux
This commit is contained in:
26
src/app/header/header.actions.ts
Normal file
26
src/app/header/header.actions.ts
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user