remove the need to type agent name to delete agents in dashboard

This commit is contained in:
sadnub
2021-11-23 21:12:05 -05:00
parent cc482354f5
commit ffc9347e06

View File

@@ -564,11 +564,11 @@ export default {
removeAgent(agent) {
this.$q
.dialog({
title: `Please type <code style="color:red">${agent.hostname}</code> to confirm deletion.`,
title: `Please type <code style="color:red">yes</code> in the box below to confirm deletion.`,
prompt: {
model: "",
type: "text",
isValid: val => val === agent.hostname,
isValid: val => val === "yes",
},
cancel: true,
ok: { label: "Uninstall", color: "negative" },