Merge branch 'develop' of github.com:Kitzanos/GEPAFIN-FE into develop
This commit is contained in:
@@ -131,6 +131,7 @@ const DomandeTablePreInstructorAsync = ({ userId = null, statuses = [] }) => {
|
||||
};
|
||||
|
||||
const actionsBodyTemplate = (rowData) => {
|
||||
console.log('status', rowData.status)
|
||||
if (rowData.status === 'AWAITING') {
|
||||
return <Button
|
||||
severity="info"
|
||||
@@ -143,9 +144,22 @@ const DomandeTablePreInstructorAsync = ({ userId = null, statuses = [] }) => {
|
||||
const label = ['OPEN', 'SOCCORSO'].includes(rowData.status) && userData.id === rowData.userId
|
||||
? __('Valuta', 'gepafin')
|
||||
: __('Mostra', 'gepafin');
|
||||
return <Link to={`/domande/${rowData.applicationId}`}>
|
||||
<Button severity="info" label={label} icon="pi pi-eye" size="small" iconPos="right"/>
|
||||
</Link>
|
||||
return (
|
||||
<div className="appPageSection__tableActions lessGap">
|
||||
<Link to={`/domande/${rowData.applicationId}`}>
|
||||
<Button severity="info" label={label} icon="pi pi-eye" size="small" iconPos="right"/>
|
||||
</Link>
|
||||
{rowData.applicationStatus === 'REJECTED' && (
|
||||
<Button
|
||||
severity='success'
|
||||
label={__('Riammetti', 'gepafin')}
|
||||
icon='pi pi-arrow-circle-up'
|
||||
size="small"
|
||||
iconPos="right"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user