Skip to content

Commit

Permalink
Pel Info displayed in modal
Browse files Browse the repository at this point in the history
- Event logs pel info displayed in modal.

Signed-off-by: Nikhil Ashoka <[email protected]>
  • Loading branch information
Nikhil-Ashoka committed Dec 8, 2022
1 parent b311334 commit e484a13
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/views/Logs/EventLogs/EventLogs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@
/>
</b-col>
</b-row>
<!-- Modals -->
<modal-pel-info :pel-data="pelData" />
</b-container>
</template>

Expand Down Expand Up @@ -310,6 +312,7 @@ import TableRowExpandMixin, {
import SearchFilterMixin, {
searchFilter,
} from '@/components/Mixins/SearchFilterMixin';
import ModalPelInfo from '../Modals/ModalPelInfo';
export default {
components: {
Expand All @@ -318,6 +321,7 @@ export default {
IconChevron,
IconDownload,
InfoTooltip,
ModalPelInfo,
PageTitle,
Search,
StatusIcon,
Expand Down Expand Up @@ -427,6 +431,7 @@ export default {
selectedRows: selectedRows,
tableHeaderCheckboxModel: tableHeaderCheckboxModel,
tableHeaderCheckboxIndeterminate: tableHeaderCheckboxIndeterminate,
pelData: [],
};
},
computed: {
Expand Down Expand Up @@ -485,6 +490,8 @@ export default {
},
methods: {
downloadFile(pelJsonInfo) {
this.pelData = pelJsonInfo;
this.$bvModal.show('modal-pel-info');
let date = new Date();
date =
date.toISOString().slice(0, 10) +
Expand Down
19 changes: 19 additions & 0 deletions src/views/Logs/Modals/ModalPelInfo.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<template>
<b-modal id="modal-pel-info" scrollable size="lg" hide-footer>
<template #modal-title> PEL Information</template>
<pre>{{ pelData.toString() }}</pre>
</b-modal>
</template>

<script>
export default {
props: {
pelData: {
type: Array,
default() {
return [];
},
},
},
};
</script>

0 comments on commit e484a13

Please sign in to comment.