- added pec usage data;

- added stats for instructor manager dashboard;
- fixed dispalying 0 in tables in numeric inputs;
This commit is contained in:
Vitalii Kiiko
2025-02-26 09:27:33 +01:00
parent 923a1e389f
commit 6326735417
13 changed files with 283 additions and 46 deletions

View File

@@ -15,7 +15,7 @@ const NumericFormulaCell = ({ getValue, row: { index }, column: { id }, table })
return (
<InputNumber
disabled={disabled}
value={initialValue ?? 0}
value={initialValue}
onValueChange={(e) => onChange(e.value)}
onFocus={onFocus}
minFractionDigits={0}

View File

@@ -120,12 +120,14 @@ const Table = ({
? <span className="appForm__field--required">*</span> : null}
</label>
{tableValue
? <RenderTable
columnsCfg={columns}
tableValue={tableValue}
lastRowCfg={lastRow}
setTableValueFn={updateValue}
disabled={disabled}/> : null}
? <div style={{ width: '100%', overflow: 'auto' }}>
<RenderTable
columnsCfg={columns}
tableValue={tableValue}
lastRowCfg={lastRow}
setTableValueFn={updateValue}
disabled={disabled}/>
</div> : null}
</>)
}

View File

@@ -15,7 +15,7 @@ const NumericFormulaCell = ({ getValue, row: { index }, column: { id }, table })
return (
<InputNumber
disabled={disabled}
value={initialValue ?? 0}
value={initialValue}
onValueChange={(e) => onChange(e.value)}
onFocus={onFocus}
minFractionDigits={0}

View File

@@ -170,12 +170,15 @@ const Table = ({
? <span className="appForm__field--required">*</span> : null}
</label>
{rows
? <RenderTable
columnsCfg={columns}
rowsData={rows}
lastRowCfg={lastRow}
setRowsFn={updateRows}
disabled={disabled}/> : null}
? <div style={{ width: '100%', overflow: 'auto' }}>
<RenderTable
columnsCfg={columns}
rowsData={rows}
lastRowCfg={lastRow}
setRowsFn={updateRows}
disabled={disabled}/>
</div>
: null}
{!isEmpty(columns) && !shouldDisableNewRows
? <div className="addNewTableRow p-button p-component" onClick={addNewRow}>
{__('Aggiungi una riga', 'gepafin')}

View File

@@ -257,7 +257,9 @@ const NotificationsSidebar = () => {
};
useEffect(() => {
fetchMessages();
if (userData && userData.id) {
fetchMessages();
}
}, [chosenCompanyId, userData.id, isConnected]);
useEffect(() => {