mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
rewrote window resize event using redux
This commit is contained in:
@@ -1,24 +1,22 @@
|
||||
import { Injectable } from "@angular/core";
|
||||
import { Action } from "@ngrx/store";
|
||||
|
||||
@Injectable()
|
||||
export class HeaderActions {
|
||||
static COLLAPSE = 'dspace/header/COLLAPSE';
|
||||
collapse(): Action {
|
||||
static collapse(): Action {
|
||||
return {
|
||||
type: HeaderActions.COLLAPSE
|
||||
}
|
||||
}
|
||||
|
||||
static EXPAND = 'dspace/header/EXPAND';
|
||||
expand(): Action {
|
||||
static expand(): Action {
|
||||
return {
|
||||
type: HeaderActions.EXPAND
|
||||
}
|
||||
}
|
||||
|
||||
static TOGGLE = 'dspace/header/TOGGLE';
|
||||
toggle(): Action {
|
||||
static toggle(): Action {
|
||||
return {
|
||||
type: HeaderActions.TOGGLE
|
||||
}
|
||||
|
Reference in New Issue
Block a user