Skip to content

Commit 457e6db

Browse files
author
David Kim
authored
fix: fixing wording mistakes in delete confirmation message (#3048)
* fix: fixing wording mistakes in delete confirmation message * fix: make name into a variable
1 parent e2077c2 commit 457e6db

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/flows/components/FlowContextMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
SquareButton,
2222
} from '@influxdata/clockface'
2323
import {FlowListContext} from 'src/flows/context/flow.list'
24-
import {PROJECT_NAME_PLURAL} from 'src/flows'
24+
import {PROJECT_NAME, PROJECT_NAME_PLURAL} from 'src/flows'
2525

2626
// Utils
2727
import {event} from 'src/cloud/utils/reporting'
@@ -92,7 +92,7 @@ const FlowContextMenu: FC<Props> = ({id, name, isPinned}) => {
9292
icon={IconFont.Trash_New}
9393
shape={ButtonShape.Square}
9494
size={ComponentSize.ExtraSmall}
95-
confirmationLabel="Yes, delete this bucket"
95+
confirmationLabel={`Yes, delete this ${PROJECT_NAME}`}
9696
onConfirm={handleDelete}
9797
confirmationButtonText="Confirm"
9898
testID="context-delete-menu"

src/labels/components/LabelContextMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class LabelContextMenu extends PureComponent<Props> {
2828
icon={IconFont.Trash_New}
2929
shape={ButtonShape.Square}
3030
size={ComponentSize.ExtraSmall}
31-
confirmationLabel="Yes, delete this Label"
31+
confirmationLabel="Yes, delete this label"
3232
onConfirm={() => {
3333
onDelete(label.id)
3434
}}

src/variables/components/VariableContextMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class VariableContextMenu extends PureComponent<Props> {
3737
icon={IconFont.Trash_New}
3838
shape={ButtonShape.Square}
3939
size={ComponentSize.ExtraSmall}
40-
confirmationLabel="Yes, delete this Variable"
40+
confirmationLabel="Yes, delete this variable"
4141
onConfirm={this.deleteVariable}
4242
confirmationButtonText="Confirm"
4343
testID={`context-delete-variable ${variable.name}`}

0 commit comments

Comments
 (0)