File tree 2 files changed +10
-1
lines changed
plugins/logger/frontend/public
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 174
174
} ,
175
175
filterChange : function ( ) {
176
176
this . fetchRequestLogs ( ) ;
177
+ } ,
178
+ handleTableRowClick : function ( row ) {
179
+ // Only expand row if text inside of it are not highlighted
180
+ if ( window . getSelection ( ) . toString ( ) . length === 0 ) {
181
+ this . $refs . requestLogTable . $refs . elTable . toggleRowExpansion ( row ) ;
182
+ }
183
+ } ,
184
+ tableRowClassName : function ( ) {
185
+ return 'bu-is-clickable' ;
177
186
}
178
187
} ,
179
188
filters : {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ <h2 class="cly-vue-logger__title"> {{i18n('logger.title')}}
33
33
</ div >
34
34
< cly-section >
35
35
< cly-datatable-n ref ="requestLogTable " :persist-key ="tablePersistKey " :rows ="logsData "
36
- :resizable ="false " :force-loading ="isLoading " :export-query ="getExportQuery " class ="is-clickable ">
36
+ :resizable ="false " :force-loading ="isLoading " :export-query ="getExportQuery " class ="is-clickable " @row-click =" handleTableRowClick " :row-class-name =" tableRowClassName " >
37
37
< template v-slot:header-left ="filterScope ">
38
38
< el-select v-model ="loggerFilter " placeholder ="Select " @change ="filterChange() ">
39
39
< el-option v-for ="filter in filterOptions " :key ="filter.value " :label ="filter.label "
You can’t perform that action at this time.
0 commit comments