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