2020-01-23 12:19:43 -05:00
|
|
|
<mat-list>
|
2020-01-29 11:15:58 -05:00
|
|
|
<mat-list-item *ngFor="let fm of fileMetas">
|
|
|
|
<mat-icon mat-list-icon (click)="editFile(fm.id)">{{fm.type | getIconCode}}</mat-icon>
|
2020-01-31 09:41:37 -05:00
|
|
|
<ng-container *ngIf="fm.type === fileType.BPMN">
|
|
|
|
<button mat-flat-button *ngIf="!fm.primary" (click)="makePrimary(fm)">
|
|
|
|
<mat-icon>radio_button_unchecked</mat-icon>
|
|
|
|
Make primary process
|
|
|
|
</button>
|
|
|
|
<button mat-flat-button *ngIf="fm.primary">
|
|
|
|
<mat-icon>radio_button_checked</mat-icon>
|
|
|
|
Primary process
|
|
|
|
</button>
|
|
|
|
</ng-container>
|
2020-01-29 11:15:58 -05:00
|
|
|
<h4 mat-line (click)="editFile(fm.id)">{{fm.name}}</h4>
|
|
|
|
<p mat-line (click)="editFile(fm.id)">{{fm.last_updated | date}}</p>
|
2020-01-27 17:32:05 -05:00
|
|
|
<button mat-icon-button color="primary" (click)="editFile(fm.id)" class="mat-elevation-z0"><mat-icon>edit</mat-icon></button>
|
2020-01-29 11:15:58 -05:00
|
|
|
<button mat-icon-button color="warn" (click)="confirmDelete(fm)" class="mat-elevation-z0"><mat-icon>delete</mat-icon></button>
|
2020-01-23 12:19:43 -05:00
|
|
|
</mat-list-item>
|
|
|
|
</mat-list>
|