-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added expanding and collapsing trusted apps list item details.
- Loading branch information
Showing
4 changed files
with
183 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/constants.ts
This file was deleted.
Oops, something went wrong.
76 changes: 76 additions & 0 deletions
76
x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/translations.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
import { | ||
TrustedApp, | ||
MacosLinuxConditionEntry, | ||
WindowsConditionEntry, | ||
} from '../../../../../common/endpoint/types'; | ||
|
||
export const OS_TITLES: Readonly<{ [K in TrustedApp['os']]: string }> = { | ||
windows: i18n.translate('xpack.securitySolution.trustedapps.os.windows', { | ||
defaultMessage: 'Windows', | ||
}), | ||
macos: i18n.translate('xpack.securitySolution.trustedapps.os.macos', { | ||
defaultMessage: 'Mac OS', | ||
}), | ||
linux: i18n.translate('xpack.securitySolution.trustedapps.os.linux', { | ||
defaultMessage: 'Linux', | ||
}), | ||
}; | ||
|
||
export const PROPERTY_TITLES: Readonly< | ||
{ [K in keyof Omit<TrustedApp, 'id' | 'description' | 'entries'>]: string } | ||
> = { | ||
name: i18n.translate('xpack.securitySolution.trustedapps.trustedapp.name', { | ||
defaultMessage: 'Name', | ||
}), | ||
os: i18n.translate('xpack.securitySolution.trustedapps.trustedapp.os', { | ||
defaultMessage: 'OS', | ||
}), | ||
created_at: i18n.translate('xpack.securitySolution.trustedapps.trustedapp.createdAt', { | ||
defaultMessage: 'Date Created', | ||
}), | ||
created_by: i18n.translate('xpack.securitySolution.trustedapps.trustedapp.createdBy', { | ||
defaultMessage: 'Created By', | ||
}), | ||
}; | ||
|
||
export const ENTRY_PROPERTY_TITLES: Readonly< | ||
{ [K in keyof Omit<MacosLinuxConditionEntry | WindowsConditionEntry, 'type'>]: string } | ||
> = { | ||
field: i18n.translate('xpack.securitySolution.trustedapps.trustedapp.entry.field', { | ||
defaultMessage: 'Field', | ||
}), | ||
operator: i18n.translate('xpack.securitySolution.trustedapps.trustedapp.entry.operator', { | ||
defaultMessage: 'Operator', | ||
}), | ||
value: i18n.translate('xpack.securitySolution.trustedapps.trustedapp.entry.value', { | ||
defaultMessage: 'Value', | ||
}), | ||
}; | ||
|
||
export const ACTIONS_COLUMN_TITLE = i18n.translate( | ||
'xpack.securitySolution.trustedapps.list.columns.actions', | ||
{ | ||
defaultMessage: 'Actions', | ||
} | ||
); | ||
|
||
export const LIST_ACTIONS = { | ||
delete: { | ||
name: i18n.translate('xpack.securitySolution.trustedapps.list.actions.delete', { | ||
defaultMessage: 'Remove', | ||
}), | ||
description: i18n.translate( | ||
'xpack.securitySolution.trustedapps.list.actions.delete.description', | ||
{ | ||
defaultMessage: 'Remove this entry', | ||
} | ||
), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters