Skip to content
Snippets Groups Projects
Commit 5be01a19 authored by Alicia.DeDiosFuente's avatar Alicia.DeDiosFuente Committed by Florent Poittevin
Browse files

feat: 1406 change display for disposition approval

parent 0c9323cd
No related branches found
No related tags found
1 merge request!236Adf 1406 change display for disposition approval
......@@ -63,7 +63,7 @@ export class AdminPreservationPolicyListRoutable extends SharedAbstractListRouta
{
field: "dispositionApproval",
header: MARK_AS_TRANSLATABLE("admin.preservationPolicy.table.header.dispositionApproval"),
type: FieldTypeEnum.string,
type: FieldTypeEnum.boolean,
order: OrderEnum.none,
isFilterable: true,
isSortable: true,
......
......@@ -402,12 +402,22 @@
</ng-template>
<ng-template #noTranslate>
<span *ngIf="getCellData(rowData, col) as value"
<span *ngIf="col.type !== fieldTypeEnum.boolean"
[matTooltip]="getTooltip(col, value)"
[matTooltipShowDelay]="TIME_BEFORE_DISPLAY_TOOLTIP"
>
{{value}}
{{getCellData(rowData, col)}}
</span>
<dlcm-shared-icon *ngIf="col.type === fieldTypeEnum.boolean && getCellData(rowData, col)"
[iconName]="iconNameEnum.trueValue"
matSuffix
></dlcm-shared-icon>
<dlcm-shared-icon *ngIf="col.type === fieldTypeEnum.boolean && getCellData(rowData, col) === false"
[iconName]="iconNameEnum.falseValue"
matSuffix
></dlcm-shared-icon>
</ng-template>
</ng-template>
......
......@@ -6,4 +6,5 @@ export enum FieldTypeEnum {
searchableSingleSelect,
singleSelect,
size,
boolean
}
......@@ -126,5 +126,7 @@ export enum IconNameEnum {
darkMode,
creationDate,
defaultValue,
change
change,
trueValue,
falseValue
}
......@@ -648,5 +648,15 @@ export class IconHelper {
lib: IconLibEnum.materialIcon,
icon: "swap_horiz",
},
{
name: IconNameEnum.trueValue,
lib: IconLibEnum.materialIcon,
icon: "check_circle_outline",
},
{
name: IconNameEnum.falseValue,
lib: IconLibEnum.materialIcon,
icon: "highlight_off",
},
];
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment