Commit cce386f8 authored by Savas Vedova's avatar Savas Vedova Committed by Natalia Tepluhina

Use class property instead of separate th and td class properties

parent 90657593
...@@ -144,57 +144,50 @@ export default { ...@@ -144,57 +144,50 @@ export default {
{ {
key: 'detected', key: 'detected',
label: s__('Vulnerability|Detected'), label: s__('Vulnerability|Detected'),
thClass: 'detected', class: 'detected',
tdClass: 'detected',
sortable: this.isSortable, sortable: this.isSortable,
}, },
{ {
key: 'state', key: 'state',
label: s__('Vulnerability|Status'), label: s__('Vulnerability|Status'),
thClass: 'status', class: 'status',
tdClass: 'status',
sortable: this.isSortable, sortable: this.isSortable,
}, },
{ {
key: 'severity', key: 'severity',
label: s__('Vulnerability|Severity'), label: s__('Vulnerability|Severity'),
thClass: 'severity', class: 'severity',
tdClass: 'severity',
sortable: this.isSortable, sortable: this.isSortable,
}, },
{ {
key: 'title', key: 'title',
label: __('Description'), label: __('Description'),
thClass: 'description', class: 'description gl-word-break-all',
tdClass: 'description gl-word-break-all',
sortable: this.isSortable, sortable: this.isSortable,
}, },
{ {
key: 'identifier', key: 'identifier',
label: s__('Vulnerability|Identifier'), label: s__('Vulnerability|Identifier'),
thClass: 'identifier', class: 'identifier gl-word-break-all',
tdClass: 'identifier gl-word-break-all',
}, },
{ {
key: 'reportType', key: 'reportType',
label: s__('Reports|Scanner'), label: s__('Reports|Scanner'),
thClass: 'scanner', class: 'scanner',
tdClass: 'scanner',
sortable: this.isSortable, sortable: this.isSortable,
}, },
{ {
key: 'activity', key: 'activity',
label: s__('Vulnerability|Activity'), label: s__('Vulnerability|Activity'),
thClass: 'gl-text-right activity', thClass: 'gl-text-right',
tdClass: 'activity', class: 'activity',
}, },
]; ];
if (this.shouldShowSelection) { if (this.shouldShowSelection) {
baseFields.unshift({ baseFields.unshift({
key: 'checkbox', key: 'checkbox',
thClass: 'checkbox', class: 'checkbox',
tdClass: 'checkbox',
}); });
} }
......
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