2 ========================LICENSE_START=================================
5 Copyright (C) 2019 AT&T Intellectual Property
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ========================LICENSE_END===================================
21 <div mat-dialog-title>
22 App Metrics Visualization
24 <form [formGroup]="statsDialogForm" novalidate autocomplete="off" (ngSubmit)="setupStats(statsDialogForm.value)">
25 <div mat-dialog-content>
26 <mat-form-field class="input-display-block">
27 <input matInput type="text" placeholder="App Name" formControlName="appName">
28 <mat-hint align="end">Example: MC</mat-hint>
29 <mat-error *ngIf="validateControl('appName') && hasError('appName', 'required')">App Name is required</mat-error>
31 <mat-form-field class="input-display-block">
32 <input matInput type="text" placeholder="Metrics Url" formControlName="metricUrl">
33 <mat-error *ngIf="validateControl('metricUrl') && hasError('metricUrl', 'required')">Metrics Url is required</mat-error>
36 <div mat-dialog-actions class="modal-footer justify-content-center">
37 <button class="mat-raised-button" [mat-dialog-close]="false">Cancel</button>
38 <button class="mat-raised-button mat-primary" [disabled]="!statsDialogForm.valid || processing">OK</button>