Skip to content

Commit 14862d1

Browse files
authored
feat: add name to confirmation dialog on delete (#987)
1 parent 001afe1 commit 14862d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cmd/kafka/delete/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func runDelete(opts *options) error {
121121

122122
if !opts.force {
123123
promptConfirmName := &survey.Input{
124-
Message: opts.localizer.MustLocalize("kafka.delete.input.confirmName.message"),
124+
Message: opts.localizer.MustLocalize("kafka.delete.input.confirmName.message", localize.NewEntry("Name", kafkaName)),
125125
}
126126

127127
var confirmedKafkaName string

pkg/localize/locales/en/cmd/kafka_delete.en.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ one = 'Skip confirmation to forcibly delete this Kafka instance'
4242

4343
[kafka.delete.input.confirmName.message]
4444
description = 'Input title for Kafka name confirmation'
45-
one = 'Confirm the name of the instance you want to delete:'
45+
one = 'Confirm the name of the instance you want to delete ({{.Name}}):'
4646

4747
[kafka.delete.log.info.incorrectNameConfirmation]
4848
description = 'Info message when user incorrectly confirms the name'

0 commit comments

Comments
 (0)