From 11e8845102c21e6be672409b5f241c2437c50074 Mon Sep 17 00:00:00 2001 From: sbgap Date: Fri, 26 Apr 2024 14:37:28 +0200 Subject: [PATCH] fix: remove notes from alerta history view --- src/components/HistoryList.vue | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/components/HistoryList.vue b/src/components/HistoryList.vue index eab92ae1..64b77f3b 100644 --- a/src/components/HistoryList.vue +++ b/src/components/HistoryList.vue @@ -154,11 +154,6 @@ - - {{ lastNote(props.item) }} - @@ -201,7 +196,8 @@ export default { 'receiveTime', 'duration', 'lastReceiveId', - 'lastReceiveTime' + 'lastReceiveTime', + 'note' ], allowedHeaders: [ 'attributes', @@ -243,7 +239,6 @@ export default { timeout: { text: i18n.t('Timeout'), value: 'timeout', sortable: false }, timeoutLeft: { text: i18n.t('TimeoutLeft'), value: 'timeoutLeft', sortable: false }, customer: { text: i18n.t('Customer'), value: 'customer', sortable: false }, - note: { text: i18n.t('LastNote'), value: 'note', sortable: false } }, details: false, timer: null @@ -319,10 +314,6 @@ export default { let expireTime = moment(lastModified).add(item.timeout, 'seconds') return expireTime.isAfter() ? expireTime.diff(moment(), 'seconds') : moment.duration() }, - lastNote(item) { - const note = item.history.filter(h => h.type == 'note' || h.type == 'dismiss').pop() - return note && note.type == 'note' ? note.text : '' - }, valueWidth() { return this.$store.getters.getPreference('valueWidth') },