-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update modal text and rename to uninstall
- Loading branch information
Showing
6 changed files
with
176 additions
and
64 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
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
32 changes: 0 additions & 32 deletions
32
...public/applications/ingest_manager/sections/epm/screens/detail/confirm_package_delete.tsx
This file was deleted.
Oops, something went wrong.
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
73 changes: 73 additions & 0 deletions
73
...lic/applications/ingest_manager/sections/epm/screens/detail/confirm_package_uninstall.tsx
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,73 @@ | ||
/* | ||
* 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 { EuiCallOut, EuiConfirmModal, EuiOverlayMask, EuiSpacer } from '@elastic/eui'; | ||
import React from 'react'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
|
||
interface ConfirmPackageUninstallProps { | ||
onCancel: () => void; | ||
onConfirm: () => void; | ||
packageName: string; | ||
numOfAssets: number; | ||
} | ||
export const ConfirmPackageUninstall = (props: ConfirmPackageUninstallProps) => { | ||
const { onCancel, onConfirm, packageName, numOfAssets } = props; | ||
return ( | ||
<EuiOverlayMask> | ||
<EuiConfirmModal | ||
title={ | ||
<FormattedMessage | ||
id="xpack.ingestManager.integrations.settings.confirmUninstallModal.uninstallTitle" | ||
defaultMessage="Uninstall {packageName}" | ||
values={{ packageName }} | ||
/> | ||
} | ||
onCancel={onCancel} | ||
onConfirm={onConfirm} | ||
cancelButtonText={ | ||
<FormattedMessage | ||
id="xpack.ingestManager.integrations.settings.confirmUninstallModal.cancelButtonLabel" | ||
defaultMessage="Cancel" | ||
/> | ||
} | ||
confirmButtonText={ | ||
<FormattedMessage | ||
id="xpack.ingestManager.integrations.settings.confirmUninstallModal.uninstallButtonLabel" | ||
defaultMessage="Uninstall {packageName}" | ||
values={{ packageName }} | ||
/> | ||
} | ||
defaultFocusedButton="confirm" | ||
buttonColor="danger" | ||
> | ||
<EuiCallOut | ||
color="danger" | ||
title={ | ||
<FormattedMessage | ||
id="xpack.ingestManager.integrations.settings.confirmUninstallModal.uninstallCallout.title" | ||
defaultMessage="This action will remove {numOfAssets} assets" | ||
values={{ numOfAssets }} | ||
/> | ||
} | ||
> | ||
<p> | ||
<FormattedMessage | ||
id="xpack.ingestManager.integrations.settings.confirmUninstallModal.uninstallCallout.description" | ||
defaultMessage="Kibana and Elasticsearch assets that were created by this Integration will be removed. Agents configurations and any data sent by your agents will not be effected." | ||
/> | ||
</p> | ||
</EuiCallOut> | ||
<EuiSpacer size="l" /> | ||
<p> | ||
<FormattedMessage | ||
id="xpack.ingestManager.integrations.settings.confirmUninstallModal.uninstallDescription" | ||
defaultMessage="This action cannot be undone. Are you sure you wish to continue?" | ||
/> | ||
</p> | ||
</EuiConfirmModal> | ||
</EuiOverlayMask> | ||
); | ||
}; |
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