Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.8] [Cases] Edit labels for file attachments (#156026) #156405

Merged
merged 1 commit into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ export const BULK_ACTIONS = i18n.translate('xpack.cases.caseTable.bulkActions',
});

export const EXTERNAL_INCIDENT = i18n.translate('xpack.cases.caseTable.snIncident', {
defaultMessage: 'External Incident',
defaultMessage: 'External incident',
});

export const SEVERITY = i18n.translate('xpack.cases.caseTable.severity', {
defaultMessage: 'Severity',
});

export const INCIDENT_MANAGEMENT_SYSTEM = i18n.translate('xpack.cases.caseTable.incidentSystem', {
defaultMessage: 'Incident Management System',
defaultMessage: 'Incident management system',
});

export const SEARCH_PLACEHOLDER = i18n.translate('xpack.cases.caseTable.searchPlaceholder', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('useCasesColumns ', () => {
"sortable": true,
},
Object {
"name": "External Incident",
"name": "External incident",
"render": [Function],
"width": undefined,
},
Expand Down Expand Up @@ -232,7 +232,7 @@ describe('useCasesColumns ', () => {
"sortable": true,
},
Object {
"name": "External Incident",
"name": "External incident",
"render": [Function],
"width": undefined,
},
Expand Down Expand Up @@ -316,7 +316,7 @@ describe('useCasesColumns ', () => {
"sortable": true,
},
Object {
"name": "External Incident",
"name": "External incident",
"render": [Function],
"width": undefined,
},
Expand Down Expand Up @@ -395,7 +395,7 @@ describe('useCasesColumns ', () => {
"sortable": true,
},
Object {
"name": "External Incident",
"name": "External incident",
"render": [Function],
"width": undefined,
},
Expand Down Expand Up @@ -479,7 +479,7 @@ describe('useCasesColumns ', () => {
"sortable": true,
},
Object {
"name": "External Incident",
"name": "External incident",
"render": [Function],
"width": undefined,
},
Expand Down Expand Up @@ -638,7 +638,7 @@ describe('useCasesColumns ', () => {
"sortable": true,
},
Object {
"name": "External Incident",
"name": "External incident",
"render": [Function],
"width": undefined,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('getFileType', () => {
expect(actions[0]).toStrictEqual({
type: AttachmentActionType.CUSTOM,
isPrimary: false,
label: 'Download File',
label: 'Download file',
render: expect.any(Function),
});

Expand All @@ -102,7 +102,7 @@ describe('getFileType', () => {
expect(actions[1]).toStrictEqual({
type: AttachmentActionType.CUSTOM,
isPrimary: false,
label: 'Delete File',
label: 'Delete file',
render: expect.any(Function),
});

Expand All @@ -126,7 +126,7 @@ describe('getFileType', () => {
expect(actions[1]).toStrictEqual({
type: AttachmentActionType.CUSTOM,
isPrimary: false,
label: 'Delete File',
label: 'Delete file',
render: expect.any(Function),
});

Expand Down
8 changes: 4 additions & 4 deletions x-pack/plugins/cases/public/components/files/translations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ export const ACTIONS = i18n.translate('xpack.cases.caseView.files.actions', {
});

export const ADD_FILE = i18n.translate('xpack.cases.caseView.files.addFile', {
defaultMessage: 'Add File',
defaultMessage: 'Add file',
});

export const CLOSE_MODAL = i18n.translate('xpack.cases.caseView.files.closeModal', {
defaultMessage: 'Close',
});

export const DATE_ADDED = i18n.translate('xpack.cases.caseView.files.dateAdded', {
defaultMessage: 'Date Added',
defaultMessage: 'Date added',
});

export const DELETE_FILE = i18n.translate('xpack.cases.caseView.files.deleteFile', {
defaultMessage: 'Delete File',
defaultMessage: 'Delete file',
});

export const DOWNLOAD_FILE = i18n.translate('xpack.cases.caseView.files.downloadFile', {
defaultMessage: 'Download File',
defaultMessage: 'Download file',
});

export const FILES_TABLE = i18n.translate('xpack.cases.caseView.files.filesTable', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ describe('useFilesTableColumns', () => {
"data-test-subj": "cases-files-table-date-added",
"dataType": "date",
"field": "created",
"name": "Date Added",
"name": "Date added",
},
Object {
"actions": Array [
Object {
"description": "Download File",
"description": "Download file",
"isPrimary": true,
"name": "Download",
"render": [Function],
},
Object {
"description": "Delete File",
"description": "Delete file",
"isPrimary": true,
"name": "Delete",
"render": [Function],
Expand Down