Przeglądaj źródła

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek 1 rok temu
rodzic
commit
9f92988506
3 zmienionych plików z 10 dodań i 4 usunięć
  1. +1
    -1
      src/components/CostAndExpenseReport/CostAndExpenseReport.tsx
  2. +8
    -2
      src/components/CreateGroup/CreateGroup.tsx
  3. +1
    -1
      src/components/EditStaff/StaffInfo.tsx

+ 1
- 1
src/components/CostAndExpenseReport/CostAndExpenseReport.tsx Wyświetl plik

@@ -54,7 +54,7 @@ const CostAndExpenseReport: React.FC<Props> = ({ team, customer, subsidiary, nee
needAll: true
},
{
label: t("Remaining Percentage (<= %)"),
label: t("Budget Remaining Percentage (<= %)"),
paramName: "budgetPercentage",
type: "number",
},


+ 8
- 2
src/components/CreateGroup/CreateGroup.tsx Wyświetl plik

@@ -34,14 +34,20 @@ const CreateGroup: React.FC<Props> = ({ auth, users }) => {
...data,
removeUserIds: [],
removeAuthIds: [],

}
console.log(postData)
await saveGroup(postData)
router.replace("/settings/group")
} catch (e) {
console.log(e);
setServerError(t("An error has occurred. Please try again later."));
console.log(data)
if (!data.addUserIds || data.addUserIds.length == 0) {
setServerError(t("Please allocate users."));
} else if (!data.addAuthIds || data.addAuthIds.length == 0) {
setServerError(t("Please allocate auths."));
} else {
setServerError(t("An error has occurred. Please try again later."));
}
}
},
[router]


+ 1
- 1
src/components/EditStaff/StaffInfo.tsx Wyświetl plik

@@ -437,7 +437,7 @@ const StaffInfo: React.FC<Props> = ({ combos }) => {
</Grid>
<Grid item xs={6}>
<FormControl fullWidth>
<InputLabel required>{t("Join Position")}</InputLabel>
<InputLabel>{t("Join Position")}</InputLabel>
<Controller
control={control}
name="joinPositionId"


Ładowanie…
Anuluj
Zapisz