From 97ad29ade038263962eeda55187645e3b1661938 Mon Sep 17 00:00:00 2001 From: Erki Aas Date: Tue, 11 Oct 2022 21:33:22 +0300 Subject: [PATCH] Moved ExamineLog content into separate component, made ExamineLog use ag-grid --- frontend/src/components/ExamineLogModal.vue | 83 +++++++++++++++++++++ frontend/src/components/LogViewer.vue | 52 ++----------- 2 files changed, 89 insertions(+), 46 deletions(-) create mode 100644 frontend/src/components/ExamineLogModal.vue diff --git a/frontend/src/components/ExamineLogModal.vue b/frontend/src/components/ExamineLogModal.vue new file mode 100644 index 0000000..96609e6 --- /dev/null +++ b/frontend/src/components/ExamineLogModal.vue @@ -0,0 +1,83 @@ + + + \ No newline at end of file diff --git a/frontend/src/components/LogViewer.vue b/frontend/src/components/LogViewer.vue index dbbfdc2..4ee57dc 100644 --- a/frontend/src/components/LogViewer.vue +++ b/frontend/src/components/LogViewer.vue @@ -14,40 +14,7 @@ :supress-horisontal-scroll="true" :enable-scrolling="true" > - - - - - - - - Key - - - Value - - - - - - {{ item.key }} - - {{ item.value }} - - - - - - - Close Dialog - - - + @@ -56,27 +23,17 @@ import { AgGridVue } from "ag-grid-vue3"; import "ag-grid-community/styles//ag-grid.css"; import "ag-grid-community/styles//ag-theme-material.css"; import ScreenshotCell from "./ScreenshotCell.js"; -import { VCard, VCardText, VCardActions } from 'vuetify/components/VCard' -import { VDialog } from 'vuetify/components/VDialog' -import { VBtn } from 'vuetify/components/VBtn' -import { VTable } from 'vuetify/components/VTable' +import ExamineLogModal from "./ExamineLogModal.vue"; export default { components: { + ExamineLogModal, AgGridVue, - VCard, - VCardText, - VCardActions, - VBtn, - VDialog, - VTable, ScreenshotCell: ScreenshotCell }, data() { return { - examineLog: null, examineLogContent: null, - copied: false, gridApi: null, gridColumnApi: null, rowData: [], @@ -169,6 +126,9 @@ export default { }) }) this.examineLogContent = pairs + }, + closeExamineLog () { + this.examineLogContent = null } }, }