fix: edit management user
This commit is contained in:
parent
3f09b4e93a
commit
995a5db0b4
|
|
@ -41,16 +41,7 @@ import { useEffect, useState } from "react";
|
|||
import { Input } from "@/components/ui/input";
|
||||
import { Textarea } from "@/components/ui/textarea";
|
||||
import { Link, useRouter } from "@/i18n/routing";
|
||||
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
|
||||
import dynamic from "next/dynamic";
|
||||
import { Checkbox } from "@/components/ui/checkbox";
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from "@/components/ui/select";
|
||||
import Swal from "sweetalert2";
|
||||
import withReactContent from "sweetalert2-react-content";
|
||||
import { close, error, loading } from "@/config/swal";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import {
|
|||
httpPutInterceptor,
|
||||
} from "../http-config/http-interceptor-service";
|
||||
|
||||
|
||||
// User CRUD Operations
|
||||
export interface CreateUserRequest {
|
||||
address: string;
|
||||
|
|
@ -35,7 +34,7 @@ export async function AdministrationUserList(
|
|||
name = "",
|
||||
size: string,
|
||||
featureId: string,
|
||||
role = ""
|
||||
role = "",
|
||||
) {
|
||||
const url = `users/pagination/internal?enablePage=1&size=${size}&page=${page}&levelId=${id}&name=${name}&featureId=${featureId}&roleFilter=${role}`;
|
||||
return httpGetInterceptor(url);
|
||||
|
|
@ -84,6 +83,11 @@ export async function getListCompetencies() {
|
|||
return httpGetInterceptor(url);
|
||||
}
|
||||
|
||||
export async function updateUserInternal(id: number, data: any) {
|
||||
const url = `users/${id}`;
|
||||
return httpPutInterceptor(url, data);
|
||||
}
|
||||
|
||||
export async function getListExperiences() {
|
||||
const url = "users/user-experiences/list";
|
||||
return httpGetInterceptor(url);
|
||||
|
|
|
|||
Loading…
Reference in New Issue