Skip to content

Commit

Permalink
Migration to use the new MDC-based Angular Components. Components mig…
Browse files Browse the repository at this point in the history
…rated: progress-spinner

PiperOrigin-RevId: 566384114
  • Loading branch information
zzzaries authored and copybara-github committed Sep 18, 2023
1 parent 09279e3 commit 9cb544f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/app/common/angular/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ ts_library(
)

ts_library(
name = "angular_material_legacy_progress_spinner",
name = "angular_material_progress_spinner",
srcs = [],
deps = [
"@npm//@angular/material",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/components/capture_profile/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ xprof_ng_module(
"@npm//rxjs",
"@org_xprof//frontend/app/common/angular:angular_material_button",
"@org_xprof//frontend/app/common/angular:angular_material_dialog",
"@org_xprof//frontend/app/common/angular:angular_material_legacy_progress_spinner",
"@org_xprof//frontend/app/common/angular:angular_material_legacy_snack_bar",
"@org_xprof//frontend/app/common/angular:angular_material_progress_spinner",
"@org_xprof//frontend/app/common/interfaces",
"@org_xprof//frontend/app/components/capture_profile/capture_profile_dialog",
"@org_xprof//frontend/app/services/data_service",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@

<div>
<mat-form-field>
<mat-label>Profiling duration(ms)</mat-label>
<input
matInput
type="number"
placeholder="Profiling Duration (milliseconds)"
[(ngModel)]="duration"
/>
</mat-form-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {MatButtonModule} from '@angular/material/button';
import {MatDialogModule} from '@angular/material/dialog';
import {MatLegacyProgressSpinnerModule} from '@angular/material/legacy-progress-spinner';
import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';
import {MatLegacySnackBarModule} from '@angular/material/legacy-snack-bar';

import {CaptureProfile} from './capture_profile';
Expand All @@ -16,7 +16,7 @@ import {CaptureProfileDialogModule} from './capture_profile_dialog/capture_profi
CommonModule,
MatButtonModule,
MatDialogModule,
MatLegacyProgressSpinnerModule,
MatProgressSpinnerModule,
CaptureProfileDialogModule,
MatLegacySnackBarModule,
],
Expand Down
1 change: 1 addition & 0 deletions frontend/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ $theme: mat.define-light-theme(
@include mat.select-theme($theme);
@include mat.menu-theme($theme);
@include mat.dialog-theme($theme);
@include mat.progress-spinner-theme($theme);
@include mat.progress-bar-theme($theme);

html, body {
Expand Down

0 comments on commit 9cb544f

Please sign in to comment.