This is an automated email from the ASF dual-hosted git repository.
tabish pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-console.git
The following commit(s) were added to refs/heads/main by this push:
new 8a6ca6e ARTEMIS-5392 - Only display visible columns for sorting &
searching
8a6ca6e is described below
commit 8a6ca6e9e6e21c0c88f2294fe873856a3041d526
Author: Andy Taylor <[email protected]>
AuthorDate: Mon May 12 20:44:34 2025 +0100
ARTEMIS-5392 - Only display visible columns for sorting & searching
---
.../packages/artemis-console-plugin/src/table/ArtemisTable.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/table/ArtemisTable.tsx
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/table/ArtemisTable.tsx
index 655b68d..b42b8e5 100644
---
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/table/ArtemisTable.tsx
+++
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/table/ArtemisTable.tsx
@@ -323,7 +323,7 @@ const operationOptions = [
id="options-menu-multiple-options-example"
menuItems={[
<OptionsMenuItemGroup key="first group" aria-label="Sort
column">
- {Object.values(broker.allColumns).map((column, columnIndex)
=> (
+ {Object.values(broker.allColumns).filter((element) =>
element.visible).map((column, columnIndex) => (
<OptionsMenuItem
key={column.id}
isSelected={activeSort.id === column.id}
@@ -381,7 +381,7 @@ const operationOptions = [
onOpenChange={(isOpen: boolean) =>
setFilterColumnStatusIsExpanded(isOpen)}
>
<SelectList>
- {columns.map((column, index) => (
+ {columns.filter((element) => element.visible).map((column,
index) => (
<SelectOption key={column.id}
value={column.name}>{column.name}</SelectOption>
))}
</SelectList>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact