Commit b4af5106 authored by lauraMon's avatar lauraMon

Updates column key to match backend sort

parent f2f5b0e2
...@@ -44,13 +44,13 @@ export default { ...@@ -44,13 +44,13 @@ export default {
sortable: true, sortable: true,
}, },
{ {
key: 'startedAt', key: 'startTime',
label: s__('AlertManagement|Start time'), label: s__('AlertManagement|Start time'),
tdClass, tdClass,
sortable: true, sortable: true,
}, },
{ {
key: 'endedAt', key: 'endTime',
label: s__('AlertManagement|End time'), label: s__('AlertManagement|End time'),
tdClass, tdClass,
sortable: true, sortable: true,
...@@ -60,7 +60,6 @@ export default { ...@@ -60,7 +60,6 @@ export default {
label: s__('AlertManagement|Alert'), label: s__('AlertManagement|Alert'),
thClass: 'w-30p', thClass: 'w-30p',
tdClass, tdClass,
sortable: true,
}, },
{ {
key: 'eventCount', key: 'eventCount',
...@@ -128,6 +127,7 @@ export default { ...@@ -128,6 +127,7 @@ export default {
return { return {
projectPath: this.projectPath, projectPath: this.projectPath,
statuses: this.statusFilter, statuses: this.statusFilter,
sort: this.sort,
}; };
}, },
update(data) { update(data) {
...@@ -258,11 +258,11 @@ export default { ...@@ -258,11 +258,11 @@ export default {
</div> </div>
</template> </template>
<template #cell(startedAt)="{ item }"> <template #cell(startTime)="{ item }">
<time-ago v-if="item.startedAt" :time="item.startedAt" /> <time-ago v-if="item.startedAt" :time="item.startedAt" />
</template> </template>
<template #cell(endedAt)="{ item }"> <template #cell(endTime)="{ item }">
<time-ago v-if="item.endedAt" :time="item.endedAt" /> <time-ago v-if="item.endedAt" :time="item.endedAt" />
</template> </template>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment