<ng-container matColumnDef="action">
<mat-header-cell *matHeaderCellDef> Action </mat-header-cell>
- <mat-cell *matCellDef="let element">
- <button mat-icon-button
- (click)="view()">
+ <!-- click on button should not expand/collapse the row -->
+ <mat-cell *matCellDef="let element" (click)="$event.stopPropagation()">
+ <button mat-icon-button (click)="controlApp(element)">
<mat-icon>settings</mat-icon>
</button>
- <button mat-icon-button
- color="warn"
- (click)="undeploy(element.xapp)">
+ <button mat-icon-button color="warn" (click)="undeployApp(element)">
<mat-icon>delete</mat-icon>
</button>
</mat-cell>
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
<mat-row *matRowDef="let element; columns: displayedColumns;"
- [class.example-expanded-row]="expandedElement === element"
- (click)="expandedElement = expandedElement === element ? null : element"></mat-row>
+ [class.example-expanded-row]="expandedElement === element"
+ (click)="expandedElement = expandedElement === element ? null : element"></mat-row>
<tr mat-row *matRowDef="let row; columns: ['expandedDetail']" class="message-row"></tr>
</table>
-</div>
+</div>
\ No newline at end of file