build: update to angular-v9.1.12 (#1215)

Fixes: #1216
This commit is contained in:
Karan Takalkar
2020-08-23 14:21:17 +05:30
committed by GitHub
parent 199a8b6c9c
commit 3e21227056
324 changed files with 9893 additions and 4639 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import { ApiPrefixInterceptor } from './api-prefix.interceptor';
* HttpClient is declared in a re-exported module, so we have to extend the original module to make it work properly.
* (see https://github.com/Microsoft/TypeScript/issues/13897)
*/
declare module '@angular/common/http/src/client' {
declare module '@angular/common/http/http' {
/**
* Augment HttpClient with the added configuration methods from HttpService, to allow in-place replacement of
@@ -1,11 +1,13 @@
/** Angular Imports */
import { ActivatedRouteSnapshot, DetachedRouteHandle, RouteReuseStrategy } from '@angular/router';
import { Injectable } from '@angular/core';
/**
* A route strategy allowing for explicit route reuse.
* Used as a workaround for https://github.com/angular/angular/issues/18374
* To reuse a given route, add `data: { reuse: true }` to the route definition.
*/
@Injectable()
export class RouteReusableStrategy extends RouteReuseStrategy {
public shouldDetach(route: ActivatedRouteSnapshot): boolean {
@@ -121,7 +121,9 @@ export class SidenavComponent implements OnInit {
*/
pushActivity(path: string) {
const activity = this.frequentActivities.find((entry: any) => entry.path === path);
this.mappedActivities.push(activity);
if (!this.mappedActivities.includes(activity)) {
this.mappedActivities.push(activity);
}
}
}
@@ -1,6 +1,7 @@
/** Angular Imports */
import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core';
import { MatSidenav, MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';
import { MatSidenav } from '@angular/material/sidenav';
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import { Router } from '@angular/router';