| <!-- |
| Copyright 2019 Google LLC |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <div class="options"> |
| <mat-form-field appearance="outline"> |
| <mat-label>Invocation</mat-label> |
| <mat-select [(ngModel)]="selectedAttempt" |
| (selectionChange)="clearConsole(); resetPolling()"> |
| <mat-option *ngFor="let invocation of invocations" [value]="invocation"> |
| {{invocation.attempt_id}} |
| </mat-option> |
| </mat-select> |
| </mat-form-field> |
| |
| <mat-form-field appearance="outline"> |
| <mat-label>Type</mat-label> |
| <mat-select [(ngModel)]="selectedType" |
| (selectionChange)="clearConsole(); resetPolling()"> |
| <mat-option *ngFor="let type of LOG_TYPES | keyvalue" [value]="type.value"> |
| {{type.key}} |
| </mat-option> |
| </mat-select> |
| </mat-form-field> |
| |
| <span fxFlex></span> |
| |
| <a mat-stroked-button color="accent" [href]="getLogUrl()" target="_blank" *ngIf="output.length"> |
| Full Log |
| </a> |
| </div> |
| |
| <div class="output" #outputContainer> |
| <pre *ngFor="let line of output">{{line}}</pre> |
| <pre class="empty" *ngIf="!output.length"> |
| <ng-container *ngIf="initialized; else loading">No logs found.</ng-container> |
| <ng-template #loading>Loading...</ng-template> |
| </pre> |
| </div> |