- amendmend when expired it cannot be closed, the btn is disabled;
This commit is contained in:
@@ -554,7 +554,7 @@ const SoccorsoEditInstructorManager = () => {
|
|||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={openCloseAmendmentDialog}
|
onClick={openCloseAmendmentDialog}
|
||||||
disabled={isAsyncRequest || ['CLOSE', 'AWAITING'].includes(data.status)}
|
disabled={isAsyncRequest || ['CLOSE', 'AWAITING', 'EXPIRED'].includes(data.status)}
|
||||||
label={__('Chiudi Soccorso Istruttorio', 'gepafin')}
|
label={__('Chiudi Soccorso Istruttorio', 'gepafin')}
|
||||||
icon="pi pi-times" iconPos="right"/>
|
icon="pi pi-times" iconPos="right"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -601,7 +601,7 @@ const SoccorsoEditInstructorManager = () => {
|
|||||||
<BlockingOverlay shouldDisplay={data.status === 'CLOSE'}/>
|
<BlockingOverlay shouldDisplay={data.status === 'CLOSE'}/>
|
||||||
<Editor
|
<Editor
|
||||||
value={internalNote}
|
value={internalNote}
|
||||||
readOnly={['CLOSE'].includes(data.status)}
|
readOnly={['CLOSE', 'EXPIRED'].includes(data.status)}
|
||||||
placeholder={__('Digita qui il messagio', 'gepafin')}
|
placeholder={__('Digita qui il messagio', 'gepafin')}
|
||||||
headerTemplate={header}
|
headerTemplate={header}
|
||||||
onTextChange={(e) => setInternalNote(e.htmlValue)}
|
onTextChange={(e) => setInternalNote(e.htmlValue)}
|
||||||
|
|||||||
@@ -554,7 +554,7 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={openCloseAmendmentDialog}
|
onClick={openCloseAmendmentDialog}
|
||||||
disabled={isAsyncRequest || ['CLOSE', 'AWAITING'].includes(data.status)}
|
disabled={isAsyncRequest || ['CLOSE', 'AWAITING', 'EXPIRED'].includes(data.status)}
|
||||||
label={__('Chiudi Soccorso Istruttorio', 'gepafin')}
|
label={__('Chiudi Soccorso Istruttorio', 'gepafin')}
|
||||||
icon="pi pi-times" iconPos="right"/>
|
icon="pi pi-times" iconPos="right"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -601,7 +601,7 @@ const SoccorsoEditPreInstructor = () => {
|
|||||||
<BlockingOverlay shouldDisplay={data.status === 'CLOSE'}/>
|
<BlockingOverlay shouldDisplay={data.status === 'CLOSE'}/>
|
||||||
<Editor
|
<Editor
|
||||||
value={internalNote}
|
value={internalNote}
|
||||||
readOnly={['CLOSE'].includes(data.status)}
|
readOnly={['CLOSE', 'EXPIRED'].includes(data.status)}
|
||||||
placeholder={__('Digita qui il messagio', 'gepafin')}
|
placeholder={__('Digita qui il messagio', 'gepafin')}
|
||||||
headerTemplate={header}
|
headerTemplate={header}
|
||||||
onTextChange={(e) => setInternalNote(e.htmlValue)}
|
onTextChange={(e) => setInternalNote(e.htmlValue)}
|
||||||
|
|||||||
Reference in New Issue
Block a user