Skip to content

Commit

Permalink
Fix revoke action label and reject textfield validation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Carminepo2 committed Dec 19, 2024
1 parent 80b5599 commit 3b817f5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/dialogs/DialogRejectProducerDelegation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export const DialogRejectProducerDelegation: React.FC<DialogRejectProducerDelega
infoLabel={t('content.reason.infoLabel')}
focusOnMount
multiline
inputProps={{ maxLength: 1000 }}
rules={{ required: true, minLength: 20 }}
inputProps={{ maxLength: 250 }}
rules={{ required: true, minLength: 10 }}
/>
</DialogContent>

Expand Down
2 changes: 1 addition & 1 deletion src/components/dialogs/DialogRevokeProducerDelegation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const DialogRevokeProducerDelegation: React.FC<DialogRevokeProducerDelega
{tCommon('cancel')}
</Button>
<Button variant="contained" disabled={!isConfirmCheckboxChecked} onClick={handleRevoke}>
{tCommon('revoke')}
{t('actions.revoke')}
</Button>
</DialogActions>
</Dialog>
Expand Down
3 changes: 3 additions & 0 deletions src/static/locales/en/shared-components.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@
"content": {
"description": "The delegate will lose management of your e-service <strong>{{eserviceName}} with producer delegation</strong>, and the agreements and the purposes associated with it. The e-service will return under your control in the state it was in at the time of revocation. Do you have doubts? <1>Read the guide</1>.",
"checkbox": "I have read and I want to proceed with the revocation"
},
"actions": {
"revoke": "Revoke delegation"
}
},
"dialogRejectDelegatedVersionDraft": {
Expand Down
3 changes: 3 additions & 0 deletions src/static/locales/it/shared-components.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@
"content": {
"description": "Il delegato perderà la gestione del tuo e-service <strong>{{eserviceName}} con delega all'erogazione</strong>, e delle richieste di fruizione e le finalità ad esso associate. L’e-service tornerà sotto il tuo controllo nello stato in cui si trova all’atto della revoca. Hai dubbi? <1>Consulta la guida</1>.",
"checkbox": "Ho letto e voglio procedere con la revoca"
},
"actions": {
"revoke": "Revoca la delega"
}
},
"dialogRejectDelegatedVersionDraft": {
Expand Down

0 comments on commit 3b817f5

Please sign in to comment.