Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 437352436
  • Loading branch information
schedviz-eng committed Mar 25, 2022
1 parent 48f24c3 commit 5fb1be3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/app/collections/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//
import {HttpErrorResponse} from '@angular/common/http';
import {ChangeDetectionStrategy, Component, ElementRef, Inject, OnDestroy, OnInit, ViewChild} from '@angular/core';
import {FormControl, FormGroupDirective, NgForm} from '@angular/forms';
import {UntypedFormControl, FormGroupDirective, NgForm} from '@angular/forms';
import {ErrorStateMatcher} from '@angular/material/core';
import {MatSnackBar} from '@angular/material/snack-bar';
import {Router} from '@angular/router';
Expand Down Expand Up @@ -157,7 +157,7 @@ export class Collections implements OnInit, OnDestroy {
}

class DisabledErrorStateMatcher implements ErrorStateMatcher {
isErrorState(control: FormControl|null, form: FormGroupDirective|NgForm|null):
isErrorState(control: UntypedFormControl|null, form: FormGroupDirective|NgForm|null):
boolean {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions client/app/sidebar/settings_menu/settings_menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//
import {CdkDragDrop, moveItemInArray} from '@angular/cdk/drag-drop';
import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit} from '@angular/core';
import {FormControl} from '@angular/forms';
import {UntypedFormControl} from '@angular/forms';
import {ErrorStateMatcher} from '@angular/material/core';
import {BehaviorSubject, merge} from 'rxjs';
import {switchMap} from 'rxjs/operators';
Expand All @@ -31,7 +31,7 @@ import {getHumanReadableDurationFromNs, timeInputToNs} from '../../util/duration
* Matcher which enters an error state immediately, ignoring empty fields.
*/
class ImmediateErrorStateMatcher implements ErrorStateMatcher {
isErrorState(control: FormControl|null): boolean {
isErrorState(control: UntypedFormControl|null): boolean {
if (!control) {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions client/app/sidebar/thread_table/thread_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//
import {animate, state, style, transition, trigger} from '@angular/animations';
import {AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit} from '@angular/core';
import {FormControl} from '@angular/forms';
import {UntypedFormControl} from '@angular/forms';
import {ErrorStateMatcher} from '@angular/material/core';
import {BehaviorSubject, Observable} from 'rxjs';

Expand All @@ -33,7 +33,7 @@ const EMBEDDED_PAGE_SIZE = 20;
* Matcher which enters an error state immediately, ignoring empty fields.
*/
class ImmediateErrorStateMatcher implements ErrorStateMatcher {
isErrorState(control: FormControl|null): boolean {
isErrorState(control: UntypedFormControl|null): boolean {
if (!control) {
return false;
}
Expand Down

0 comments on commit 5fb1be3

Please sign in to comment.