Fix: some css classes. Fix: session renewal. Fix: some broken links.
This commit is contained in:
@@ -69,11 +69,8 @@ const Perfil = () => {
|
||||
|
||||
const reqConfig = {
|
||||
baseUrl: `${config.apiConfig.baseUrl}${config.apiConfig.endpoints.users.me}`,
|
||||
myIncomesUrl: buildUrl(config.apiConfig.baseUrl, config.apiConfig.endpoints.incomes.mine),
|
||||
requestUrl: buildUrl(config.apiConfig.baseUrl, config.apiConfig.endpoints.requests.all),
|
||||
myRequestsUrl: buildUrl(config.apiConfig.baseUrl, config.apiConfig.endpoints.requests.mine),
|
||||
changePasswordUrl: buildUrl(config.apiConfig.coreUrl, config.apiConfig.endpoints.auth.changePassword),
|
||||
loginValidateUrl: buildUrl(config.apiConfig.coreUrl, config.apiConfig.endpoints.auth.loginValidate),
|
||||
};
|
||||
|
||||
return (
|
||||
@@ -426,6 +423,7 @@ const PerfilContent = ({ config }) => {
|
||||
type: CONSTANTS.REQUEST_TYPE_ADD_COLLABORATOR,
|
||||
status: CONSTANTS.REQUEST_PENDING,
|
||||
userId: identity.user.userId,
|
||||
name: identity.user.displayName,
|
||||
metadata: {
|
||||
displayName: formData.displayName,
|
||||
username: formData.username,
|
||||
@@ -468,12 +466,7 @@ const PerfilContent = ({ config }) => {
|
||||
variant="warning"
|
||||
onClick={async () => {
|
||||
try {
|
||||
await postData(config.requestUrl, {
|
||||
type: CONSTANTS.REQUEST_TYPE_REMOVE_COLLABORATOR,
|
||||
status: CONSTANTS.REQUEST_PENDING,
|
||||
requestedBy: identity.user.userId
|
||||
});
|
||||
|
||||
sendSimpleRequest(CONSTANTS.REQUEST_TYPE_REMOVE_COLLABORATOR);
|
||||
setFeedbackModal({
|
||||
title: "Solicitud enviada",
|
||||
message: "Se ha solicitado la eliminación del colaborador.",
|
||||
|
||||
Reference in New Issue
Block a user