1 //- Copyright (c) 2019 AT&T Intellectual Property. #
\r
3 //- Licensed under the Apache License, Version 2.0 (the "License"); #
\r
4 //- you may not use this file except in compliance with the License. #
\r
5 //- You may obtain a copy of the License at #
\r
7 //- http://www.apache.org/licenses/LICENSE-2.0 #
\r
9 //- Unless required by applicable law or agreed to in writing, software #
\r
10 //- distributed under the License is distributed on an "AS IS" BASIS, #
\r
11 //- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
\r
12 //- See the License for the specific language governing permissions and #
\r
13 //- limitations under the License. #
\r
14 //- #############################################################################
\r
17 div([@routerTransition]).mb-3
\r
21 app-page-header.pull-left([heading]="'Test Instances'", [icon]="'fa-edit'")
\r
22 button.mr-2.pull-right(mat-raised-button, color="primary", (click)="createTestInstance()") New
\r
29 button.mr-2.pull-right(color="primary", matTooltip="Delete Test Instance", mat-icon-button, (click)="deleteMultipleTestInstance()", [disabled]="(!hasSelectedRows)")
\r
30 mat-icon delete_forever
\r
32 button.mr-2.pull-right(color="primary", matTooltip="Clone Test Instance", mat-icon-button, (click)="cloneTestInstance()", [disabled]="(!selectedSingleRow)")
\r
33 mat-icon insert_drive_file
\r
35 button.mr-2.pull-right(color="primary", matTooltip="Edit Test Instance", mat-icon-button, (click)="editTestInstance()", [disabled]="(!selectedSingleRow)")
\r
38 button.mr-2.pull-right(color="primary", matTooltip="Execute Test Instance", mat-icon-button, (click)="executeMultipleTestInstance()", *ngIf="(selectedUnlockedRows)")
\r
39 mat-icon play_circle_outline
\r
41 button.mr-2.pull-right(color="primary", matTooltip="Schedule Test Instance", mat-icon-button, (click)="schedule()", *ngIf="(selectedUnlockedRows && selectedSingleRow)")
\r
47 ag-grid-angular.ag-theme-material(
\r
48 style="width:100%; height: 600px",
\r
49 [rowData]="rowData",
\r
50 [columnDefs]="columnDefs",
\r
51 rowSelection="multiple",
\r
52 [rowMultiSelectWithClick]="true",
\r
53 (rowSelected)="onRowSelected($event)",
\r
54 (gridReady)="onGridReady($event)",
\r
55 [singleClickEdit]="true",
\r
56 [gridOptions]="gridOptions",
\r
57 (rowDataChanged)="selectActiveInstance($event)"
\r
60 .col-md-3(*ngIf="selectedSingleRow")
\r
62 div(*ngFor = "let ti of rowData")
\r
63 app-test-instance-expanded-details(*ngIf="ti._id == selectedRows[0]._id", [testInstanceId]="selectedRows[0]._id")
\r