mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
header component tests
This commit is contained in:
@@ -2,11 +2,7 @@ import { Component, OnInit } from "@angular/core";
|
||||
import { Store } from "@ngrx/store";
|
||||
import { HeaderState } from "./header.reducer";
|
||||
import { Observable } from "rxjs";
|
||||
import {
|
||||
HeaderCollapseAction,
|
||||
HeaderExpandAction,
|
||||
HeaderToggleAction
|
||||
} from "./header.actions";
|
||||
import { HeaderToggleAction } from "./header.actions";
|
||||
|
||||
@Component({
|
||||
selector: 'ds-header',
|
||||
@@ -27,14 +23,6 @@ export class HeaderComponent implements OnInit {
|
||||
.map(({ navCollapsed }: HeaderState) => navCollapsed);
|
||||
}
|
||||
|
||||
private collapse(): void {
|
||||
this.store.dispatch(new HeaderCollapseAction());
|
||||
}
|
||||
|
||||
private expand(): void {
|
||||
this.store.dispatch(new HeaderExpandAction());
|
||||
}
|
||||
|
||||
public toggle(): void {
|
||||
this.store.dispatch(new HeaderToggleAction());
|
||||
}
|
||||
|
Reference in New Issue
Block a user