update extensions & webhooks confirmation text

This commit is contained in:
Sidney Alcantara
2021-11-30 13:17:32 +11:00
parent 08318d1f37
commit 23b22fb219
2 changed files with 6 additions and 8 deletions

View File

@@ -52,8 +52,7 @@ export default function Extensions() {
const handleClose = () => {
if (edited) {
requestConfirmation({
title: "Discard changes",
body: "You will lose changes you have made to extensions",
title: "Discard changes?",
confirm: "Discard",
handleConfirm: () => {
setLocalExtensionsObjects(currentExtensionObjects);
@@ -157,8 +156,8 @@ export default function Extensions() {
const handleDelete = (index: number) => {
requestConfirmation({
title: `Delete ${localExtensionsObjects[index].name}?`,
body: "This extension will be permanently deleted.",
title: `Delete ${localExtensionsObjects[index].name}?`,
body: "This Extension will be permanently deleted when you save",
confirm: "Confirm",
handleConfirm: () => {
setLocalExtensionsObjects(

View File

@@ -45,8 +45,7 @@ export default function Webhooks() {
const handleClose = () => {
if (edited) {
requestConfirmation({
title: "Discard changes",
body: "You will lose changes you have made to webhooks",
title: "Discard changes?",
confirm: "Discard",
handleConfirm: () => {
setLocalWebhooksObjects(currentWebhooks);
@@ -137,8 +136,8 @@ export default function Webhooks() {
const handleDelete = (index: number) => {
requestConfirmation({
title: `Delete ${localWebhooksObjects[index].name}?`,
body: "This webhook will be permanently deleted.",
title: `Delete ${localWebhooksObjects[index].name}?`,
body: "This webhook will be permanently deleted when you save",
confirm: "Confirm",
handleConfirm: () => {
setLocalWebhooksObjects(