From aa005e237c5f45efe4090c0c041d9ead0d15757b Mon Sep 17 00:00:00 2001 From: Raj Gupta <150777419+Raj-G07@users.noreply.github.com> Date: Sun, 21 Sep 2025 20:45:51 +0530 Subject: [PATCH] Feature/extend activities table component by showAccountColumn input (#5556) * Extend activities table component by showAccountColumn input * Update changelog --- CHANGELOG.md | 4 ++++ .../src/lib/activities-table/activities-table.component.ts | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c03d2d754..13477c517 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Added an option to configure the account column of the activities table component + ### Changed - Renamed the show access token dialog component to user account registration dialog component diff --git a/libs/ui/src/lib/activities-table/activities-table.component.ts b/libs/ui/src/lib/activities-table/activities-table.component.ts index b38af615e..db3341946 100644 --- a/libs/ui/src/lib/activities-table/activities-table.component.ts +++ b/libs/ui/src/lib/activities-table/activities-table.component.ts @@ -104,6 +104,7 @@ export class GfActivitiesTableComponent @Input() locale = getLocale(); @Input() pageIndex: number; @Input() pageSize = DEFAULT_PAGE_SIZE; + @Input() showAccountColumn = true; @Input() showActions = true; @Input() showCheckbox = false; @Input() showNameColumn = true; @@ -192,6 +193,12 @@ export class GfActivitiesTableComponent 'actions' ]; + if (!this.showAccountColumn) { + this.displayedColumns = this.displayedColumns.filter((column) => { + return column !== 'account'; + }); + } + if (!this.showCheckbox) { this.displayedColumns = this.displayedColumns.filter((column) => { return column !== 'importStatus' && column !== 'select';