diff options
-rw-r--r-- | .env.intel | 1 | ||||
-rw-r--r-- | src/views/Logs/EventLogs/EventLogs.vue | 53 |
2 files changed, 36 insertions, 18 deletions
@@ -7,6 +7,7 @@ VUE_APP_SWITCH_TO_BACKUP_IMAGE_DISABLED="true" VUE_APP_MODIFY_SSH_POLICY_DISABLED="true" VUE_APP_VIRTUAL_MEDIA_LIST_ENABLED="true" VUE_APP_EVENT_LOGS_DELETE_BUTTON_DISABLED="true" +VUE_APP_EVENT_LOGS_TOGGLE_BUTTON_DISABLED="true" CUSTOM_STYLES="true" CUSTOM_APP_NAV="true" CUSTOM_STORE="true" diff --git a/src/views/Logs/EventLogs/EventLogs.vue b/src/views/Logs/EventLogs/EventLogs.vue index a3a90fd8..ff0473e8 100644 --- a/src/views/Logs/EventLogs/EventLogs.vue +++ b/src/views/Logs/EventLogs/EventLogs.vue @@ -50,10 +50,14 @@ @batch-action="onBatchAction" > <template #toolbar-buttons> - <b-button variant="primary" @click="resolveLogs"> + <b-button v-if="!hideToggle" variant="primary" @click="resolveLogs"> {{ $t('pageEventLogs.resolve') }} </b-button> - <b-button variant="primary" @click="unresolveLogs"> + <b-button + v-if="!hideToggle" + variant="primary" + @click="unresolveLogs" + > {{ $t('pageEventLogs.unresolve') }} </b-button> <table-toolbar-export @@ -348,10 +352,12 @@ export default { label: this.$t('pageEventLogs.table.description'), tdClass: 'text-break', }, - { - key: 'status', - label: this.$t('pageEventLogs.table.status'), - }, + process.env.VUE_APP_EVENT_LOGS_TOGGLE_BUTTON_DISABLED === 'true' + ? {} + : { + key: 'status', + label: this.$t('pageEventLogs.table.status'), + }, { key: 'actions', sortable: false, @@ -359,18 +365,27 @@ export default { tdClass: 'text-right text-nowrap', }, ], - tableFilters: [ - { - key: 'severity', - label: this.$t('pageEventLogs.table.severity'), - values: ['OK', 'Warning', 'Critical'], - }, - { - key: 'filterByStatus', - label: this.$t('pageEventLogs.table.status'), - values: ['Resolved', 'Unresolved'], - }, - ], + tableFilters: + process.env.VUE_APP_EVENT_LOGS_TOGGLE_BUTTON_DISABLED === 'true' + ? [ + { + key: 'severity', + label: this.$t('pageEventLogs.table.severity'), + values: ['OK', 'Warning', 'Critical'], + }, + ] + : [ + { + key: 'severity', + label: this.$t('pageEventLogs.table.severity'), + values: ['OK', 'Warning', 'Critical'], + }, + { + key: 'filterByStatus', + label: this.$t('pageEventLogs.table.status'), + values: ['Resolved', 'Unresolved'], + }, + ], expandRowLabel, activeFilters: [], batchActions: @@ -392,6 +407,8 @@ export default { selectedRows: selectedRows, tableHeaderCheckboxModel: tableHeaderCheckboxModel, tableHeaderCheckboxIndeterminate: tableHeaderCheckboxIndeterminate, + hideToggle: + process.env.VUE_APP_EVENT_LOGS_TOGGLE_BUTTON_DISABLED === 'true', hideDelete: process.env.VUE_APP_EVENT_LOGS_DELETE_BUTTON_DISABLED === 'true', }; |