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 {
328328 ) ;
329329 }
330330 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+ >
332343 { cellContent }
333344 </ td >
334345 ) ;
@@ -581,6 +592,18 @@ class Views extends TableView {
581592 this . props . navigate ( path ) ;
582593 }
583594
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+
584607 handleValueClick ( value ) {
585608 this . setState ( { viewValue : value } ) ;
586609 }
You can’t perform that action at this time.
0 commit comments