Skip to content

Commit 4300334

Browse files
authored
Merge pull request #3186 from Countly/request-logs-ui
[SER-79] Update request logs table row
2 parents 4225e01 + 581fc70 commit 4300334

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

plugins/logger/frontend/public/javascripts/countly.views.js

+9
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,15 @@
174174
},
175175
filterChange: function() {
176176
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';
177186
}
178187
},
179188
filters: {

plugins/logger/frontend/public/templates/logger.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h2 class="cly-vue-logger__title"> {{i18n('logger.title')}}
3333
</div>
3434
<cly-section>
3535
<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">
3737
<template v-slot:header-left="filterScope">
3838
<el-select v-model="loggerFilter" placeholder="Select" @change="filterChange()">
3939
<el-option v-for="filter in filterOptions" :key="filter.value" :label="filter.label"

0 commit comments

Comments
 (0)