From 6b7fe57c1775545e79672ab270e9026ce6ba9761 Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Tue, 15 Jul 2025 01:35:08 +0200 Subject: [PATCH] fix: open view pointers in new tab with cmd --- src/dashboard/Data/Views/Views.react.js | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/dashboard/Data/Views/Views.react.js b/src/dashboard/Data/Views/Views.react.js index 10877487bd..1ce02dd9ae 100644 --- a/src/dashboard/Data/Views/Views.react.js +++ b/src/dashboard/Data/Views/Views.react.js @@ -328,7 +328,18 @@ class Views extends TableView { ); } return ( - + { + if (hasPill && e.metaKey) { + this.handlePointerCmdClick({ + className: value.className, + id: value.objectId, + }); + } + }} + > {cellContent} ); @@ -581,6 +592,18 @@ class Views extends TableView { this.props.navigate(path); } + handlePointerCmdClick({ className, id, field = 'objectId' }) { + const filters = JSON.stringify([{ field, constraint: 'eq', compareTo: id }]); + window.open( + generatePath( + this.context, + `browser/${className}?filters=${encodeURIComponent(filters)}`, + true + ), + '_blank' + ); + } + handleValueClick(value) { this.setState({ viewValue: value }); }