Commit f2f5b0e2 authored by lauraMon's avatar lauraMon

Adds sortable prop to columns

parent 0927cfc6
...@@ -41,34 +41,40 @@ export default { ...@@ -41,34 +41,40 @@ export default {
key: 'severity', key: 'severity',
label: s__('AlertManagement|Severity'), label: s__('AlertManagement|Severity'),
tdClass: `${tdClass} rounded-top text-capitalize`, tdClass: `${tdClass} rounded-top text-capitalize`,
sortable: true,
}, },
{ {
key: 'startedAt', key: 'startedAt',
label: s__('AlertManagement|Start time'), label: s__('AlertManagement|Start time'),
tdClass, tdClass,
sortable: true,
}, },
{ {
key: 'endedAt', key: 'endedAt',
label: s__('AlertManagement|End time'), label: s__('AlertManagement|End time'),
tdClass, tdClass,
sortable: true,
}, },
{ {
key: 'title', key: 'title',
label: s__('AlertManagement|Alert'), label: s__('AlertManagement|Alert'),
thClass: 'w-30p', thClass: 'w-30p',
tdClass, tdClass,
sortable: true,
}, },
{ {
key: 'eventCount', key: 'eventCount',
label: s__('AlertManagement|Events'), label: s__('AlertManagement|Events'),
thClass: 'text-right gl-pr-9', thClass: 'text-right gl-pr-9',
tdClass: `${tdClass} text-md-right`, tdClass: `${tdClass} text-md-right`,
sortable: true,
}, },
{ {
key: 'status', key: 'status',
thClass: 'w-15p', thClass: 'w-15p',
label: s__('AlertManagement|Status'), label: s__('AlertManagement|Status'),
tdClass: `${tdClass} rounded-bottom`, tdClass: `${tdClass} rounded-bottom`,
sortable: true,
}, },
], ],
statuses: { statuses: {
......
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