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') },