Skip to content

Commit 00c639c

Browse files
committed
fix: label visibility issue
1 parent 5f29f0f commit 00c639c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/angular-sdk-components/src/lib/_components/template/simple-table-manual/simple-table-manual.component.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,9 +1002,17 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
10021002
const data: any = [];
10031003
this.rawFields?.forEach(item => {
10041004
if (!item?.config?.hide) {
1005+
let label = '';
1006+
if (!this.readOnlyMode) {
1007+
label = item.config.readOnly ? '' : item.config.label;
1008+
}
10051009
item = {
10061010
...item,
1007-
config: { ...item.config, label: '', displayMode: this.readOnlyMode || this.allowEditingInModal ? 'DISPLAY_ONLY' : undefined }
1011+
config: {
1012+
...item.config,
1013+
label,
1014+
displayMode: this.readOnlyMode || this.allowEditingInModal ? 'DISPLAY_ONLY' : undefined
1015+
}
10081016
};
10091017
const referenceListData = getReferenceList(this.pConn$);
10101018
const isDatapage = referenceListData.startsWith('D_');

0 commit comments

Comments
 (0)