| .. | .. |
|---|
| 33 | 33 | <span style="white-space: nowrap">{{value}}</span> |
|---|
| 34 | 34 | </div> |
|---|
| 35 | 35 | </template> |
|---|
| 36 | + <template tdDataTableTemplate="status" let-row="row" let-value="value"> |
|---|
| 37 | + <div layout="row" layout-align="start center"> |
|---|
| 38 | + <md-chip selected [mdTooltip]="$L.get('pack.status.' +value)" [style.background-color]="packs.getStatusColor(value)" >{{value}}</md-chip> |
|---|
| 39 | + </div> |
|---|
| 40 | + </template> |
|---|
| 36 | 41 | <template tdDataTableTemplate="menu" let-row="row" let-index="index"> |
|---|
| 37 | 42 | <div layout="row" layout-align="end center"> |
|---|
| 38 | 43 | <button md-icon-button (click)="edit(row.id)" color="primary"><md-icon>edit</md-icon></button> |
|---|
| .. | .. |
|---|
| 41 | 46 | </button> |
|---|
| 42 | 47 | |
|---|
| 43 | 48 | <md-menu #packMenu="mdMenu"> |
|---|
| 44 | | - <button md-menu-item *ngFor="let action of pack_menu_options" (click)="packAction(action.command, row)" [disabled]="!isActionAvailable(row)"> |
|---|
| 49 | + <button md-menu-item *ngFor="let action of pack_menu_options" (click)="packAction(action.command, row)" [disabled]="!packs.isActionAvailable(action.command, row)"> |
|---|
| 45 | 50 | <md-icon *ngIf="!!action.icon">{{ action.icon }}</md-icon> {{ action.name }} |
|---|
| 46 | 51 | </button> |
|---|
| 47 | 52 | </md-menu> |
|---|