mirror of
https://github.com/EvolutionAPI/evolution-manager.git
synced 2025-07-13 15:14:49 -06:00
translate create instance
This commit is contained in:
parent
8bb1bb5df8
commit
3663968a1d
@ -1,19 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-dialog
|
<v-dialog v-model="dialog" max-width="500px">
|
||||||
v-model="dialog"
|
|
||||||
max-width="500px"
|
|
||||||
>
|
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-text class="d-flex flex-column gap-4">
|
<v-card-text class="d-flex flex-column gap-4">
|
||||||
<v-form v-model="valid">
|
<v-form v-model="valid">
|
||||||
<h3 class="mb-4">Criar instancia</h3>
|
<h3 class="mb-4">{{ $t("createInstance.title") }}</h3>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="instance.instanceName"
|
v-model="instance.instanceName"
|
||||||
label="Nome"
|
:label="$t('createInstance.name')"
|
||||||
required
|
required
|
||||||
outlined
|
outlined
|
||||||
:rules="[
|
:rules="[
|
||||||
(v) => !!v || 'Nome é obrigatório',
|
(v) =>
|
||||||
|
!!v || $t('required', { field: $t('createInstance.name') }),
|
||||||
(v) =>
|
(v) =>
|
||||||
new RegExp('^[a-zA-Z0-9_-]*$', 'i').test(v) ||
|
new RegExp('^[a-zA-Z0-9_-]*$', 'i').test(v) ||
|
||||||
'Nome inválido (apenas letras, números, _ e -)',
|
'Nome inválido (apenas letras, números, _ e -)',
|
||||||
@ -36,23 +34,18 @@
|
|||||||
</v-form>
|
</v-form>
|
||||||
|
|
||||||
<v-alert type="info" density="comfortable">
|
<v-alert type="info" density="comfortable">
|
||||||
O WebHook, WebSocket, RabbitMQ, Chatwoot e Typebot poderão ser
|
{{ $t("createInstance.configInfo") }}
|
||||||
configurados após a criação da instância.
|
|
||||||
</v-alert>
|
</v-alert>
|
||||||
|
|
||||||
<v-alert type="error" v-if="error" >
|
<v-alert type="error" v-if="error">
|
||||||
{{ Array.isArray(error) ? error.join(", ") : error }}
|
{{ Array.isArray(error) ? error.join(", ") : error }}
|
||||||
</v-alert>
|
</v-alert>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-spacer></v-spacer>
|
<v-btn text @click="dialog = false" :disabled="loading">
|
||||||
<v-btn
|
{{ $t("cancel") }}
|
||||||
text
|
|
||||||
@click="dialog = false"
|
|
||||||
:disabled="loading"
|
|
||||||
>
|
|
||||||
Cancel
|
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
<v-btn
|
<v-btn
|
||||||
color="success"
|
color="success"
|
||||||
variant="tonal"
|
variant="tonal"
|
||||||
@ -60,7 +53,7 @@
|
|||||||
:disabled="!valid"
|
:disabled="!valid"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
>
|
>
|
||||||
Criar
|
{{ $t("save") }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
@ -44,6 +44,11 @@ export default {
|
|||||||
},
|
},
|
||||||
version: "Version",
|
version: "Version",
|
||||||
},
|
},
|
||||||
|
createInstance: {
|
||||||
|
title: "Create instance",
|
||||||
|
name: "Instance name",
|
||||||
|
configInfo: "The WebHook, WebSocket, RabbitMQ, Chatwoot, and Typebot can be configured after creating the instance.",
|
||||||
|
},
|
||||||
contribute: {
|
contribute: {
|
||||||
title: "Contribute",
|
title: "Contribute",
|
||||||
via: "Contribute via",
|
via: "Contribute via",
|
||||||
|
@ -44,6 +44,11 @@ export default {
|
|||||||
},
|
},
|
||||||
version: "Version",
|
version: "Version",
|
||||||
},
|
},
|
||||||
|
createInstance: {
|
||||||
|
title: "Crear instancia",
|
||||||
|
name: "Nombre de la instancia",
|
||||||
|
configInfo: "El WebHook, WebSocket, RabbitMQ, Chatwoot y Typebot se pueden configurar después de crear la instancia.",
|
||||||
|
},
|
||||||
contribute: {
|
contribute: {
|
||||||
title: "Contribuir",
|
title: "Contribuir",
|
||||||
via: "Contribuir a través de",
|
via: "Contribuir a través de",
|
||||||
|
@ -44,6 +44,11 @@ export default {
|
|||||||
},
|
},
|
||||||
version: "Versão",
|
version: "Versão",
|
||||||
},
|
},
|
||||||
|
createInstance: {
|
||||||
|
title: "Criar instância",
|
||||||
|
name: "Nome da instância",
|
||||||
|
configInfo: "O WebHook, WebSocket, RabbitMQ, Chatwoot e Typebot poderão ser configurados após a criação da instância.",
|
||||||
|
},
|
||||||
contribute: {
|
contribute: {
|
||||||
title: "Contribuir",
|
title: "Contribuir",
|
||||||
via: "Contribua via",
|
via: "Contribua via",
|
||||||
|
Loading…
Reference in New Issue
Block a user