File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,18 @@ class Views extends TableView {
328
328
) ;
329
329
}
330
330
return (
331
- < td key = { name } className = { classes . join ( ' ' ) } >
331
+ < td
332
+ key = { name }
333
+ className = { classes . join ( ' ' ) }
334
+ onClick = { e => {
335
+ if ( hasPill && e . metaKey ) {
336
+ this . handlePointerCmdClick ( {
337
+ className : value . className ,
338
+ id : value . objectId ,
339
+ } ) ;
340
+ }
341
+ } }
342
+ >
332
343
{ cellContent }
333
344
</ td >
334
345
) ;
@@ -581,6 +592,18 @@ class Views extends TableView {
581
592
this . props . navigate ( path ) ;
582
593
}
583
594
595
+ handlePointerCmdClick ( { className, id, field = 'objectId' } ) {
596
+ const filters = JSON . stringify ( [ { field, constraint : 'eq' , compareTo : id } ] ) ;
597
+ window . open (
598
+ generatePath (
599
+ this . context ,
600
+ `browser/${ className } ?filters=${ encodeURIComponent ( filters ) } ` ,
601
+ true
602
+ ) ,
603
+ '_blank'
604
+ ) ;
605
+ }
606
+
584
607
handleValueClick ( value ) {
585
608
this . setState ( { viewValue : value } ) ;
586
609
}
You can’t perform that action at this time.
0 commit comments