Fix datatable mandatory column

This commit is contained in:
Jose Alberto Hernandez
2022-11-07 19:11:05 -06:00
parent 0bb2d62cbc
commit 422e290600
10 changed files with 111 additions and 79 deletions
@@ -54,7 +54,7 @@
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Name </th>
<td mat-cell *matCellDef="let column"> {{ column.columnName }} </td>
<td mat-cell *matCellDef="let column"> {{ column.columnName }}</td>
</ng-container>
<ng-container matColumnDef="type">
@@ -64,7 +64,12 @@
<ng-container matColumnDef="mandatory">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Mandatory </th>
<td mat-cell *matCellDef="let column"> {{ column.isColumnPrimaryKey }} </td>
<td mat-cell *matCellDef="let column" class="left">
<fa-icon *ngIf="!column.isColumnNullable" icon="check-circle" size="lg" class="column-mandatory"
matTooltip="Yes" matTooltipPosition="right"></fa-icon>
<fa-icon *ngIf="column.isColumnNullable" icon="times-circle" size="lg" class="not-column-mandatory"
matTooltip="No" matTooltipPosition="right"></fa-icon>
</td>
</ng-container>
<ng-container matColumnDef="length">
@@ -100,8 +105,8 @@
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
<button type="button" mat-raised-button [routerLink]="['../']">Cancel</button>
<button mat-raised-button color="primary"
[disabled]="!isFormEdited" *mifosxHasPermission="'UPDATE_DATATABLE'">Submit</button>
<button mat-raised-button color="primary" [disabled]="!isFormEdited"
*mifosxHasPermission="'UPDATE_DATATABLE'">Submit</button>
</mat-card-actions>
</form>