Skip to content

Commit

Permalink
fix: remove notes from alerta history view
Browse files Browse the repository at this point in the history
  • Loading branch information
sbgap committed Apr 26, 2024
1 parent 2116524 commit 11e8845
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/components/HistoryList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,6 @@
</span>
<!-- trendIndication not supported -->
<!-- only history supported is most recent note -->
<span
v-if="col == 'note'"
>
{{ lastNote(props.item) }}
</span>
</td>
</tr>
</template>
Expand Down Expand Up @@ -201,7 +196,8 @@ export default {
'receiveTime',
'duration',
'lastReceiveId',
'lastReceiveTime'
'lastReceiveTime',
'note'
],
allowedHeaders: [
'attributes',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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')
},
Expand Down

0 comments on commit 11e8845

Please sign in to comment.