@itilite/iui-user-management 1.4.765 → 1.4.768
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -21
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -21
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3608,6 +3608,17 @@ var cardsConstants = {
|
|
|
3608
3608
|
fullWidth: false,
|
|
3609
3609
|
visibility: true,
|
|
3610
3610
|
disableText: 'Please get in touch with your administrator to change this value.'
|
|
3611
|
+
}, {
|
|
3612
|
+
id: 3,
|
|
3613
|
+
label: 'Bookkeeper',
|
|
3614
|
+
description: 'This role is capable of reading all the action for own and other card employees',
|
|
3615
|
+
value: '',
|
|
3616
|
+
name: '',
|
|
3617
|
+
type: 'radio',
|
|
3618
|
+
isAssigned: false,
|
|
3619
|
+
fullWidth: false,
|
|
3620
|
+
visibility: true,
|
|
3621
|
+
disableText: 'Please get in touch with your administrator to change this value.'
|
|
3611
3622
|
}]
|
|
3612
3623
|
};
|
|
3613
3624
|
var passportInfo = [{
|
|
@@ -6200,26 +6211,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6200
6211
|
console.log("errorrr", error);
|
|
6201
6212
|
});
|
|
6202
6213
|
};
|
|
6203
|
-
var fetchLoggedUserCardsDetails = function fetchLoggedUserCardsDetails() {
|
|
6204
|
-
fetch(userAddEditUrl.cardsAddUsersDetails(), {
|
|
6205
|
-
method: 'GET',
|
|
6206
|
-
headers: {
|
|
6207
|
-
'Content-Type': 'application/json',
|
|
6208
|
-
'authorization': "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
6209
|
-
}
|
|
6210
|
-
}).then(function (response) {
|
|
6211
|
-
return response.json();
|
|
6212
|
-
}).then(function (res) {
|
|
6213
|
-
var _res$roles2;
|
|
6214
|
-
if (res !== null && res !== void 0 && (_res$roles2 = res.roles) !== null && _res$roles2 !== void 0 && _res$roles2.length) {
|
|
6215
|
-
dispatch(setCardsDetails(res));
|
|
6216
|
-
} else {
|
|
6217
|
-
IUIToastMessageService$6.warningNotify('Opps, Something went wrong.');
|
|
6218
|
-
}
|
|
6219
|
-
})["catch"](function (error) {
|
|
6220
|
-
console.log("errorrr", error);
|
|
6221
|
-
});
|
|
6222
|
-
};
|
|
6223
6214
|
useEffect(function () {
|
|
6224
6215
|
var countryObject = countryContactCode.find(function (t) {
|
|
6225
6216
|
return t.dial_code === countryDialCode;
|
|
@@ -6911,10 +6902,11 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6911
6902
|
}
|
|
6912
6903
|
}, [isTokenVerified]);
|
|
6913
6904
|
useEffect(function () {
|
|
6905
|
+
console.log(isProfile, 'isProfile', id, 'id', editUserId, 'editUserId');
|
|
6914
6906
|
if (isRendered === true) {
|
|
6915
6907
|
renderFields === null || renderFields === void 0 ? void 0 : renderFields.products.forEach(function (prod) {
|
|
6916
6908
|
if ((prod === null || prod === void 0 ? void 0 : prod.name) === 'card') {
|
|
6917
|
-
|
|
6909
|
+
fetchEditUserCardsDetails(isProfile ? id : editUserId);
|
|
6918
6910
|
}
|
|
6919
6911
|
});
|
|
6920
6912
|
setPersonalInfoInput(_extends({}, personalInfoInput, {
|