Browse Source

Show actions text when at least one action exists

Updated the logic in actionsText getter to display 'AbpUi::Actions' when there is at least one action in the actionList, instead of requiring more than one. This improves clarity for tables with a single action.
pull/23541/head
Fahri Gedik 1 year ago
parent
commit
50f90f7c8a
  1. 2
      npm/ng-packs/packages/components/extensible/src/lib/components/extensible-table/extensible-table.component.ts

2
npm/ng-packs/packages/components/extensible/src/lib/components/extensible-table/extensible-table.component.ts

@ -89,7 +89,7 @@ export class ExtensibleTableComponent<R = any> implements OnChanges, AfterViewIn
}
get actionsText(): string {
return this._actionsText ?? (this.actionList.length > 1 ? 'AbpUi::Actions' : '');
return this._actionsText ?? (this.actionList.length >= 1 ? 'AbpUi::Actions' : '');
}
@Input() data!: R[];

Loading…
Cancel
Save