Skip to content

Commit

Permalink
FIX #697
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Aug 30, 2024
1 parent 70f74bf commit 0d88aed
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1809,14 +1809,16 @@ const SubscriptionProcessEditor = (props: SubProcessProps) => {
schema: {
title: {
type: type.string,
defaultValue: 'Email',
label: translate('subscription.process.email.step.title.label'),
defaultValue: translate('subscription.process.email.step.title.defaultValue'),
constraints: [
constraints.required(translate('constraints.required.value')),
],
},
emails: {
type: type.string,
format: format.email,
label: translate('subscription.process.email.step.emails.label'),
array: true,
constraints: [
constraints.required(translate('constraints.required.value')),
Expand All @@ -1834,6 +1836,7 @@ const SubscriptionProcessEditor = (props: SubProcessProps) => {
},
message: {
type: type.string,
label: translate('subscription.process.email.step.message.label'),
format: format.text,
},
},
Expand Down Expand Up @@ -1871,6 +1874,13 @@ const SubscriptionProcessEditor = (props: SubProcessProps) => {
props.savePlan({ ...props.value, subscriptionProcess });
}
},
options: {
actions: {
add: {
label: translate('subscription.process.email.step.add.label')
}
}
},
actionLabel: translate('Create'),
});
case 'teamAdmin': {
Expand Down
1 change: 1 addition & 0 deletions daikoku/javascript/src/contexts/modals/FormModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const FormModal = <T extends TBaseObject>({
options={{
...(options || {}),
actions: {
...options?.actions || {},
submit: { display: false },
}
}}
Expand Down
5 changes: 5 additions & 0 deletions daikoku/javascript/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,11 @@
"demand.delete.modal.message": "Are you sure you want to delete this subscription demand?",
"demand.delete.modal.title": "Deleting a subscription request",
"subscription.process.add.email.step.title": "Email process step setup",
"subscription.process.email.step.title.label": "Title",
"subscription.process.email.step.title.defaultValue": "Daikoku subscription validation",
"subscription.process.email.step.emails.label": "Emails",
"subscription.process.email.step.messages.label": "body",
"subscription.process.email.step.add.label": "Add",
"widget.demands.title": " In progress demands",
"widget.demands.ext.title": "My in progress demands",
"widget.demands.state": "State: %s",
Expand Down
7 changes: 6 additions & 1 deletion daikoku/javascript/src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,12 @@
"api.documentation.clone.page.placeholder": "Sélectionnez toutes les pages à cloner",
"demand.delete.modal.message": "Voulez-vous vraiment supprimer cette demande de souscription ?",
"demand.delete.modal.title": "Suppression d'une demande de souscription",
"subscription.process.add.email.step.title": "Configuration de l'étape du processus par e-mail",
"subscription.process.add.email.step.title": "Configuration de l'étape du processus par courriel",
"subscription.process.email.step.title.label": "Sujet",
"subscription.process.email.step.title.defaultValue": "Validation d'une demande de souscription dans Daikoku",
"subscription.process.email.step.emails.label": "Courriels",
"subscription.process.email.step.message.label": "Corps du courriel",
"subscription.process.email.step.add.label": "Ajouter",
"widget.demands.title": "Mes demandes en cours",
"widget.demands.ext.title": "Demandes en cours",
"widget.demands.state": "%s",
Expand Down

0 comments on commit 0d88aed

Please sign in to comment.