- added translation=no wrapper for all Editor components;

This commit is contained in:
Vitalii Kiiko
2025-03-27 11:33:52 +01:00
parent 645f03abb0
commit b8c0a869ee
9 changed files with 62 additions and 52 deletions

View File

@@ -865,7 +865,7 @@ const DomandaEditInstructorManager = () => {
? <Button
type="button"
disabled={APP_EVALUATION_FLOW_ID === '1'
&& (!['EVALUATION', 'ADMISSIBLE', 'APPOINTMENT', 'TECHNICAL_EVALUATION'].includes(data.applicationStatus)
&& (!['EVALUATION', 'ADMISSIBLE', 'NDG', 'APPOINTMENT', 'TECHNICAL_EVALUATION'].includes(data.applicationStatus)
|| evaluationBlockedForUser(data))}
onClick={initiateRejecting}
label={__('Respingi domanda', 'gepafin')}
@@ -1110,7 +1110,7 @@ const DomandaEditInstructorManager = () => {
</div>
<h3>{__('Note', 'gepafin')}</h3>
<div>
<div translate="no">
<Editor
value={data.note}
readOnly={shouldDisableField('note') || evaluationBlockedForUser(data)}
@@ -1272,14 +1272,16 @@ const DomandaEditInstructorManager = () => {
</div> : null}
<div className="appForm__field">
<label>{__('Motivazione', 'gepafin')}</label>
<Editor
value={motivation}
readOnly={loading}
placeholder={__('Digita qui il messagio', 'gepafin')}
headerTemplate={header}
onTextChange={(e) => setMotivation(e.htmlValue)}
style={{ height: 80 * 3, width: '100%' }}
/>
<div translate="no">
<Editor
value={motivation}
readOnly={loading}
placeholder={__('Digita qui il messagio', 'gepafin')}
headerTemplate={header}
onTextChange={(e) => setMotivation(e.htmlValue)}
style={{ height: 80 * 3, width: '100%' }}
/>
</div>
</div>
</Dialog>