fix: added icon for enrichment table redirection to logs and rename doc_num to Records

This commit is contained in:
Bhargav 2024-09-24 17:17:18 +05:30
parent 7fcd40f631
commit f1fe3307d6
2 changed files with 28 additions and 1 deletions

View File

@ -34,6 +34,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</template>
<template v-slot:body-cell-actions="props">
<q-td :props="props">
<q-btn
icon="search"
:title="t('logStream.explore')"
class="q-ml-xs"
padding="sm"
unelevated
size="sm"
round
flat
@click="exploreEnrichmentTable(props)"
/>
<q-btn
icon="edit"
class="q-ml-xs"
@ -352,6 +363,21 @@ export default defineComponent({
confirmDelete.value = true;
};
const exploreEnrichmentTable = (props: any) => {
router.push({
name: "logs",
query: {
stream_type: props.row.stream_type,
stream: props.row.name,
period: "15m",
refresh: "0",
query: "",
type: "stream_explorer",
org_identifier: store.state.selectedOrganization.identifier,
},
});
};
return {
t,
qTable,
@ -391,6 +417,7 @@ export default defineComponent({
},
getImageURL,
verifyOrganizationStatus,
exploreEnrichmentTable,
};
},
computed: {

View File

@ -356,7 +356,7 @@
"header": "Streams",
"search": "Search Stream",
"name": "Name",
"docNum": "Doc Num",
"docNum": "Records",
"storageSize": "Ingested Data",
"compressedSize": "Compressed Size",
"time": "Time",