RED-8277: only show pointer cursor if entity has routerLink.

This commit is contained in:
Nicoleta Panaghiu 2024-10-23 16:09:16 +03:00
parent fba9b330dd
commit 9e457a13b4
2 changed files with 5 additions and 1 deletions

View File

@ -254,6 +254,10 @@ section.settings {
cursor: pointer;
}
.cursor-default {
cursor: default;
}
.fit-content {
width: fit-content;
}

View File

@ -87,7 +87,7 @@ export class TableContentComponent<Class extends IListable<PrimaryKey>, PrimaryK
getTableItemClasses(entity: Class): Record<string, boolean> {
const classes: Record<string, boolean> = {
'table-item': true,
pointer: !!entity.routerLink && entity.routerLink.length > 0,
'cursor-default': !entity.routerLink,
};
for (const key in this.tableItemClasses) {
if (Object.prototype.hasOwnProperty.call(this.tableItemClasses, key)) {