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 }); }