Skip to content

Commit

Permalink
Merge branch 'warn-about-problematic-consequences'
Browse files Browse the repository at this point in the history
  • Loading branch information
idevat committed Nov 7, 2024
2 parents f30e604 + 5166e11 commit 5c4b494
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {Alert} from "@patternfly/react-core";

import {LauncherDropdown} from "app/view/share";
import {useOpenTask} from "app/view/task";
import {testMarks} from "app/view/dataTest";
Expand Down Expand Up @@ -52,10 +54,24 @@ export const DashboardClusterMenu = ({clusterName}: {clusterName: string}) => {
name: "destroy",
confirm: {
title: `Destroy the cluster "${clusterName}"?`,
titleVariant: "warning",
description: (
<>
The cluster will be stopped and all its configuration files will
be deleted. This action cannot be undone.
<div className="pf-v5-u-mb-sm">
The cluster will be stopped and all its configuration files
will be deleted.
</div>
<Alert
title={
<div {...actions.destroy.warning.mark}>
This command permanently removes any cluster configuration
that has been created. This action cannot be undone.
</div>
}
isPlain
isInline
variant="warning"
></Alert>
</>
),
action: {
Expand Down
4 changes: 3 additions & 1 deletion packages/app/src/app/view/dataTest/json/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"clusterList": {
"cluster": {
"actions": {
"destroy": {},
"destroy": {
"warning": {}
},
"remove": {},
"start": {},
"stop": {}
Expand Down

0 comments on commit 5c4b494

Please sign in to comment.