mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
added type doc to menu related files
This commit is contained in:
@@ -10,12 +10,20 @@ import { MenuID } from '../shared/menu/initial-menus-state';
|
||||
@Injectable()
|
||||
export class NavbarEffects {
|
||||
menuID = MenuID.PUBLIC;
|
||||
/**
|
||||
* Effect that collapses the public menu on window resize
|
||||
* @type {Observable<CollapseMenuAction>}
|
||||
*/
|
||||
@Effect() resize$ = this.actions$
|
||||
.pipe(
|
||||
ofType(HostWindowActionTypes.RESIZE),
|
||||
map(() => new CollapseMenuAction(this.menuID))
|
||||
);
|
||||
|
||||
/**
|
||||
* Effect that collapses the public menu on reroute
|
||||
* @type {Observable<CollapseMenuAction>}
|
||||
*/
|
||||
@Effect() routeChange$ = this.actions$
|
||||
.pipe(
|
||||
ofType(fromRouter.ROUTER_NAVIGATION),
|
||||
|
Reference in New Issue
Block a user