-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feature: Implement user / user group soft deletion * update: Add deleted field in user and user group forms * chore: Align with develop * fix: Fix user group edit * chore: Align with deveop * fix: Fix error messages * fix: Fix user / usergroup delete/soft delete * chore: Update translations * fix: Fix translations and error display * fix: Fix actions handlers --------- Co-authored-by: SteveGT96 <[email protected]>
- Loading branch information
Showing
31 changed files
with
2,759 additions
and
2,583 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/components/accessories/admin/operations/operationForm/OperationForm.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/components/accessories/admin/users/editGroup/validation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { object, string } from "yup"; | ||
import { UserGroupDTO } from "../../../../../generated"; | ||
import { TFunction } from "react-i18next"; | ||
import { boolean, object, string } from "yup"; | ||
import { UserGroupDTO } from "../../../../../generated"; | ||
|
||
export const userGroupSchema = (t: TFunction<"translation">) => | ||
object().shape<UserGroupDTO>({ | ||
code: string().min(2).required(t("user.validateGroupCode")), | ||
desc: string(), | ||
deleted: boolean(), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.