Skip to content
代码片段 群组 项目
未验证 提交 a76f31ca 编辑于 作者: Justin Ho Tuan Duong's avatar Justin Ho Tuan Duong 提交者: GitLab
浏览文件

Remove unused table classes in alert details

Changelog: changed
上级 345ead1f
No related branches found
No related tags found
无相关合并请求
...@@ -10,9 +10,6 @@ import { isValidURL } from '~/lib/utils/url_utility'; ...@@ -10,9 +10,6 @@ import { isValidURL } from '~/lib/utils/url_utility';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import { PAGE_CONFIG } from '~/vue_shared/alert_details/constants'; import { PAGE_CONFIG } from '~/vue_shared/alert_details/constants';
const thClass = '!gl-bg-transparent !gl-border-1 !gl-border-b-solid !gl-border-gray-200';
const tdClass = '!gl-border-gray-100 !gl-p-5';
const allowedFields = [ const allowedFields = [
'iid', 'iid',
'title', 'title',
...@@ -55,15 +52,12 @@ export default { ...@@ -55,15 +52,12 @@ export default {
{ {
key: 'fieldName', key: 'fieldName',
label: s__('AlertManagement|Key'), label: s__('AlertManagement|Key'),
thClass,
tdClass,
formatter: (string) => formatter: (string) =>
capitalizeFirstCharacter(convertToSentenceCase(splitCamelCase(string))), capitalizeFirstCharacter(convertToSentenceCase(splitCamelCase(string))),
}, },
{ {
key: 'value', key: 'value',
thClass: `${thClass} w-60p`, thClass: 'w-60p',
tdClass,
label: s__('AlertManagement|Value'), label: s__('AlertManagement|Value'),
}, },
], ],
......
...@@ -9,8 +9,6 @@ import { LONG_DATE_FORMAT_WITH_TZ } from '~/vue_shared/constants'; ...@@ -9,8 +9,6 @@ import { LONG_DATE_FORMAT_WITH_TZ } from '~/vue_shared/constants';
import HtmlTableCell from './table_cells/html_table_cell.vue'; import HtmlTableCell from './table_cells/html_table_cell.vue';
import UrlTableCell from './table_cells/url_table_cell.vue'; import UrlTableCell from './table_cells/url_table_cell.vue';
const TABLE_HEADER_CLASSES = 'bg-transparent border-bottom p-3';
export default { export default {
components: { components: {
HtmlTableCell, HtmlTableCell,
...@@ -57,32 +55,26 @@ export default { ...@@ -57,32 +55,26 @@ export default {
{ {
key: 'author', key: 'author',
label: s__('AuditLogs|Author'), label: s__('AuditLogs|Author'),
thClass: TABLE_HEADER_CLASSES,
}, },
{ {
key: 'object', key: 'object',
label: s__('AuditLogs|Object'), label: s__('AuditLogs|Object'),
thClass: TABLE_HEADER_CLASSES,
}, },
{ {
key: 'action', key: 'action',
label: s__('AuditLogs|Action'), label: s__('AuditLogs|Action'),
thClass: TABLE_HEADER_CLASSES,
}, },
{ {
key: 'target', key: 'target',
label: s__('AuditLogs|Target'), label: s__('AuditLogs|Target'),
thClass: TABLE_HEADER_CLASSES,
}, },
{ {
key: 'ip_address', key: 'ip_address',
label: s__('AuditLogs|IP Address'), label: s__('AuditLogs|IP Address'),
thClass: TABLE_HEADER_CLASSES,
}, },
{ {
key: 'date', key: 'date',
label: s__('AuditLogs|Date'), label: s__('AuditLogs|Date'),
thClass: TABLE_HEADER_CLASSES,
}, },
], ],
dateTimeFormat: LONG_DATE_FORMAT_WITH_TZ, dateTimeFormat: LONG_DATE_FORMAT_WITH_TZ,
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册