double quotes don't work with pogen
This commit is contained in:
parent
3639c6db60
commit
f99e1522d1
@ -167,14 +167,14 @@ export function InstanceRoutes({
|
|||||||
if (error.type === ErrorType.TIMEOUT) {
|
if (error.type === ErrorType.TIMEOUT) {
|
||||||
setGlobalNotification({
|
setGlobalNotification({
|
||||||
message: i18n.str`The request to the backend take too long and was cancelled`,
|
message: i18n.str`The request to the backend take too long and was cancelled`,
|
||||||
description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`,
|
description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`,
|
||||||
type: "ERROR",
|
type: "ERROR",
|
||||||
to,
|
to,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
setGlobalNotification({
|
setGlobalNotification({
|
||||||
message: i18n.str`The backend reported a problem: HTTP status #${error.status}`,
|
message: i18n.str`The backend reported a problem: HTTP status #${error.status}`,
|
||||||
description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`,
|
description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`,
|
||||||
details:
|
details:
|
||||||
error.clientError || error.serverError
|
error.clientError || error.serverError
|
||||||
? error.error?.detail
|
? error.error?.detail
|
||||||
@ -586,12 +586,12 @@ function AdminInstanceUpdatePage({
|
|||||||
error.type === ErrorType.TIMEOUT
|
error.type === ErrorType.TIMEOUT
|
||||||
? {
|
? {
|
||||||
message: i18n.str`The request to the backend take too long and was cancelled`,
|
message: i18n.str`The request to the backend take too long and was cancelled`,
|
||||||
description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`,
|
description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`,
|
||||||
type: "ERROR" as const,
|
type: "ERROR" as const,
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
message: i18n.str`The backend reported a problem: HTTP status #${error.status}`,
|
message: i18n.str`The backend reported a problem: HTTP status #${error.status}`,
|
||||||
description: i18n.str`Diagnostic from ${error.info?.url} is "${error.message}"`,
|
description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`,
|
||||||
details:
|
details:
|
||||||
error.clientError || error.serverError
|
error.clientError || error.serverError
|
||||||
? error.error?.detail
|
? error.error?.detail
|
||||||
|
@ -219,11 +219,21 @@ msgstr ""
|
|||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:89
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:94
|
#: src/paths/admin/list/index.tsx:94
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to delete instance"
|
msgid "Failed to delete instance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:112
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:117
|
#: src/paths/admin/list/index.tsx:117
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to purge instance"
|
msgid "Failed to purge instance"
|
||||||
@ -1868,6 +1878,11 @@ msgstr ""
|
|||||||
msgid "could not update template"
|
msgid "could not update template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||||
|
#, c-format
|
||||||
|
msgid "should be one of '%1$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Webhook ID to use"
|
msgid "Webhook ID to use"
|
||||||
@ -2453,6 +2468,11 @@ msgstr ""
|
|||||||
msgid "The request to the backend take too long and was cancelled"
|
msgid "The request to the backend take too long and was cancelled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/InstanceRoutes.tsx:170
|
||||||
|
#, c-format
|
||||||
|
msgid "Diagnostic from %1$s is '%2$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/InstanceRoutes.tsx:176
|
#: src/InstanceRoutes.tsx:176
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||||
|
@ -219,11 +219,21 @@ msgstr ""
|
|||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:89
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:94
|
#: src/paths/admin/list/index.tsx:94
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to delete instance"
|
msgid "Failed to delete instance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:112
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:117
|
#: src/paths/admin/list/index.tsx:117
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to purge instance"
|
msgid "Failed to purge instance"
|
||||||
@ -1868,6 +1878,11 @@ msgstr ""
|
|||||||
msgid "could not update template"
|
msgid "could not update template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||||
|
#, c-format
|
||||||
|
msgid "should be one of '%1$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Webhook ID to use"
|
msgid "Webhook ID to use"
|
||||||
@ -2453,6 +2468,11 @@ msgstr ""
|
|||||||
msgid "The request to the backend take too long and was cancelled"
|
msgid "The request to the backend take too long and was cancelled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/InstanceRoutes.tsx:170
|
||||||
|
#, c-format
|
||||||
|
msgid "Diagnostic from %1$s is '%2$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/InstanceRoutes.tsx:176
|
#: src/InstanceRoutes.tsx:176
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||||
|
@ -222,11 +222,21 @@ msgstr "Sin instancia default"
|
|||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "Todo"
|
msgstr "Todo"
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:89
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:94
|
#: src/paths/admin/list/index.tsx:94
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "Failed to delete instance"
|
msgid "Failed to delete instance"
|
||||||
msgstr "Sin instancia default"
|
msgstr "Sin instancia default"
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:112
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:117
|
#: src/paths/admin/list/index.tsx:117
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "Failed to purge instance"
|
msgid "Failed to purge instance"
|
||||||
@ -1873,6 +1883,11 @@ msgstr "no se pudo eliminar el producto"
|
|||||||
msgid "could not update template"
|
msgid "could not update template"
|
||||||
msgstr "no se pudo actualizar el producto"
|
msgstr "no se pudo actualizar el producto"
|
||||||
|
|
||||||
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||||
|
#, fuzzy, c-format
|
||||||
|
msgid "should be one of '%1$s'"
|
||||||
|
msgstr "deberían ser iguales"
|
||||||
|
|
||||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Webhook ID to use"
|
msgid "Webhook ID to use"
|
||||||
@ -2459,6 +2474,11 @@ msgstr "Acceso denegado"
|
|||||||
msgid "The request to the backend take too long and was cancelled"
|
msgid "The request to the backend take too long and was cancelled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/InstanceRoutes.tsx:170
|
||||||
|
#, c-format
|
||||||
|
msgid "Diagnostic from %1$s is '%2$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/InstanceRoutes.tsx:176
|
#: src/InstanceRoutes.tsx:176
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||||
|
@ -219,11 +219,21 @@ msgstr ""
|
|||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:89
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:94
|
#: src/paths/admin/list/index.tsx:94
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to delete instance"
|
msgid "Failed to delete instance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:112
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:117
|
#: src/paths/admin/list/index.tsx:117
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to purge instance"
|
msgid "Failed to purge instance"
|
||||||
@ -1868,6 +1878,11 @@ msgstr ""
|
|||||||
msgid "could not update template"
|
msgid "could not update template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||||
|
#, c-format
|
||||||
|
msgid "should be one of '%1$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Webhook ID to use"
|
msgid "Webhook ID to use"
|
||||||
@ -2453,6 +2468,11 @@ msgstr ""
|
|||||||
msgid "The request to the backend take too long and was cancelled"
|
msgid "The request to the backend take too long and was cancelled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/InstanceRoutes.tsx:170
|
||||||
|
#, c-format
|
||||||
|
msgid "Diagnostic from %1$s is '%2$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/InstanceRoutes.tsx:176
|
#: src/InstanceRoutes.tsx:176
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||||
|
@ -219,11 +219,21 @@ msgstr ""
|
|||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:89
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:94
|
#: src/paths/admin/list/index.tsx:94
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to delete instance"
|
msgid "Failed to delete instance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:112
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:117
|
#: src/paths/admin/list/index.tsx:117
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to purge instance"
|
msgid "Failed to purge instance"
|
||||||
@ -1868,6 +1878,11 @@ msgstr ""
|
|||||||
msgid "could not update template"
|
msgid "could not update template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||||
|
#, c-format
|
||||||
|
msgid "should be one of '%1$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Webhook ID to use"
|
msgid "Webhook ID to use"
|
||||||
@ -2453,6 +2468,11 @@ msgstr ""
|
|||||||
msgid "The request to the backend take too long and was cancelled"
|
msgid "The request to the backend take too long and was cancelled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/InstanceRoutes.tsx:170
|
||||||
|
#, c-format
|
||||||
|
msgid "Diagnostic from %1$s is '%2$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/InstanceRoutes.tsx:176
|
#: src/InstanceRoutes.tsx:176
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||||
|
@ -219,11 +219,21 @@ msgstr ""
|
|||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:89
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:94
|
#: src/paths/admin/list/index.tsx:94
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to delete instance"
|
msgid "Failed to delete instance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:112
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:117
|
#: src/paths/admin/list/index.tsx:117
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to purge instance"
|
msgid "Failed to purge instance"
|
||||||
@ -1868,6 +1878,11 @@ msgstr ""
|
|||||||
msgid "could not update template"
|
msgid "could not update template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||||
|
#, c-format
|
||||||
|
msgid "should be one of '%1$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Webhook ID to use"
|
msgid "Webhook ID to use"
|
||||||
@ -2453,6 +2468,11 @@ msgstr ""
|
|||||||
msgid "The request to the backend take too long and was cancelled"
|
msgid "The request to the backend take too long and was cancelled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/InstanceRoutes.tsx:170
|
||||||
|
#, c-format
|
||||||
|
msgid "Diagnostic from %1$s is '%2$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/InstanceRoutes.tsx:176
|
#: src/InstanceRoutes.tsx:176
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||||
|
@ -215,12 +215,21 @@ msgstr ""
|
|||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:89
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been deleted"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:94
|
#: src/paths/admin/list/index.tsx:94
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to delete instance"
|
msgid "Failed to delete instance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/admin/list/index.tsx:112
|
||||||
|
#, c-format
|
||||||
|
msgid "Instance '%1$s' (ID: %2$s) has been disabled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/admin/list/index.tsx:117
|
#: src/paths/admin/list/index.tsx:117
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to purge instance"
|
msgid "Failed to purge instance"
|
||||||
@ -1857,6 +1866,11 @@ msgstr ""
|
|||||||
msgid "could not update template"
|
msgid "could not update template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:57
|
||||||
|
#, c-format
|
||||||
|
msgid "should be one of '%1$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
#: src/paths/instance/webhooks/create/CreatePage.tsx:85
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Webhook ID to use"
|
msgid "Webhook ID to use"
|
||||||
@ -2438,6 +2452,11 @@ msgstr ""
|
|||||||
msgid "The request to the backend take too long and was cancelled"
|
msgid "The request to the backend take too long and was cancelled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/InstanceRoutes.tsx:170
|
||||||
|
#, c-format
|
||||||
|
msgid "Diagnostic from %1$s is '%2$s'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/InstanceRoutes.tsx:176
|
#: src/InstanceRoutes.tsx:176
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "The backend reported a problem: HTTP status #%1$s"
|
msgid "The backend reported a problem: HTTP status #%1$s"
|
||||||
|
@ -86,7 +86,7 @@ export default function Instances({
|
|||||||
await deleteInstance(deleting.id);
|
await deleteInstance(deleting.id);
|
||||||
// pushNotification({ message: 'delete_success', type: 'SUCCESS' })
|
// pushNotification({ message: 'delete_success', type: 'SUCCESS' })
|
||||||
setNotif({
|
setNotif({
|
||||||
message: i18n.str`Instance "${deleting.name}" (ID: ${deleting.id}) has been deleted`,
|
message: i18n.str`Instance '${deleting.name}' (ID: ${deleting.id}) has been deleted`,
|
||||||
type: "SUCCESS",
|
type: "SUCCESS",
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -109,7 +109,7 @@ export default function Instances({
|
|||||||
try {
|
try {
|
||||||
await purgeInstance(purging.id);
|
await purgeInstance(purging.id);
|
||||||
setNotif({
|
setNotif({
|
||||||
message: i18n.str`Instance "${purging.name}" (ID: ${purging.id}) has been disabled`,
|
message: i18n.str`Instance '${purging.name}' (ID: ${purging.id}) has been disabled`,
|
||||||
type: "SUCCESS",
|
type: "SUCCESS",
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -54,7 +54,7 @@ export function CreatePage({ onCreate, onBack }: Props): VNode {
|
|||||||
http_method: !state.http_method
|
http_method: !state.http_method
|
||||||
? i18n.str`required`
|
? i18n.str`required`
|
||||||
: !validMethod.includes(state.http_method)
|
: !validMethod.includes(state.http_method)
|
||||||
? i18n.str`should be one of "${validMethod.join(", ")}"`
|
? i18n.str`should be one of '${validMethod.join(", ")}'`
|
||||||
: undefined,
|
: undefined,
|
||||||
url: !state.url ? i18n.str`required` : undefined,
|
url: !state.url ? i18n.str`required` : undefined,
|
||||||
};
|
};
|
||||||
|
@ -50,7 +50,7 @@ export function UpdatePage({ webhook, onUpdate, onBack }: Props): VNode {
|
|||||||
http_method: !state.http_method
|
http_method: !state.http_method
|
||||||
? i18n.str`required`
|
? i18n.str`required`
|
||||||
: !validMethod.includes(state.http_method)
|
: !validMethod.includes(state.http_method)
|
||||||
? i18n.str`should be one of "${validMethod.join(", ")}"`
|
? i18n.str`should be one of '${validMethod.join(", ")}'`
|
||||||
: undefined,
|
: undefined,
|
||||||
url: !state.url ? i18n.str`required` : undefined,
|
url: !state.url ? i18n.str`required` : undefined,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user