@itilite/iui-user-management 1.3.15 → 1.4.0
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.css +4 -0
- package/dist/index.js +122 -105
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +122 -105
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -750,7 +750,6 @@ var departmentHeadOptions = function departmentHeadOptions(search, loadedOptions
|
|
|
750
750
|
data: item
|
|
751
751
|
};
|
|
752
752
|
});
|
|
753
|
-
console.log(response.next);
|
|
754
753
|
return {
|
|
755
754
|
options: mappedValue,
|
|
756
755
|
hasMore: !!response.next,
|
|
@@ -1363,7 +1362,7 @@ var fetchCountryCodes = function fetchCountryCodes() {
|
|
|
1363
1362
|
return new Promise(function (resolve, reject) {
|
|
1364
1363
|
api$2.get(userAddEditUrl.countryCode()).then(function (res) {
|
|
1365
1364
|
dispatch(setCountryCodes(res.data.country_code_details));
|
|
1366
|
-
resolve(
|
|
1365
|
+
resolve(res.data.country_code_details);
|
|
1367
1366
|
})["catch"](function (err) {
|
|
1368
1367
|
reject(err);
|
|
1369
1368
|
})["finally"](function () {});
|
|
@@ -4939,7 +4938,31 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4939
4938
|
}
|
|
4940
4939
|
setProductAccess(_productAccess);
|
|
4941
4940
|
};
|
|
4942
|
-
var _useState2 = React.useState(
|
|
4941
|
+
var _useState2 = React.useState(''),
|
|
4942
|
+
newCountryCode = _useState2[0],
|
|
4943
|
+
setNewCountryCode = _useState2[1];
|
|
4944
|
+
var _useState3 = React.useState(),
|
|
4945
|
+
countryDialCode = _useState3[0],
|
|
4946
|
+
setCountryDialCode = _useState3[1];
|
|
4947
|
+
var _useState4 = React.useState([]),
|
|
4948
|
+
countryContactCode = _useState4[0],
|
|
4949
|
+
setCountryContactCode = _useState4[1];
|
|
4950
|
+
React.useEffect(function () {
|
|
4951
|
+
var countryObject = countryContactCode.find(function (t) {
|
|
4952
|
+
return t.dial_code === countryDialCode;
|
|
4953
|
+
});
|
|
4954
|
+
if (countryObject) {
|
|
4955
|
+
setPersonalInfoInput(_extends({}, personalInfoInput, {
|
|
4956
|
+
country_code: countryObject.code
|
|
4957
|
+
}));
|
|
4958
|
+
}
|
|
4959
|
+
}, [countryDialCode]);
|
|
4960
|
+
React.useEffect(function () {
|
|
4961
|
+
var extractedNumber = newCountryCode.substring(1);
|
|
4962
|
+
var convertedNumber = parseInt(extractedNumber);
|
|
4963
|
+
setCountryDialCode(convertedNumber);
|
|
4964
|
+
}, [newCountryCode]);
|
|
4965
|
+
var _useState5 = React.useState({
|
|
4943
4966
|
first_name: '',
|
|
4944
4967
|
last_name: '',
|
|
4945
4968
|
email: '',
|
|
@@ -4950,9 +4973,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4950
4973
|
contact_country_code: '',
|
|
4951
4974
|
profile_pic: []
|
|
4952
4975
|
}),
|
|
4953
|
-
personalInfoInput =
|
|
4954
|
-
setPersonalInfoInput =
|
|
4955
|
-
var
|
|
4976
|
+
personalInfoInput = _useState5[0],
|
|
4977
|
+
setPersonalInfoInput = _useState5[1];
|
|
4978
|
+
var _useState6 = React.useState({
|
|
4956
4979
|
emp_level: {
|
|
4957
4980
|
value: '',
|
|
4958
4981
|
label: 'Select employee level'
|
|
@@ -4985,9 +5008,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4985
5008
|
label: defaultCurrency
|
|
4986
5009
|
}
|
|
4987
5010
|
}),
|
|
4988
|
-
employeeInfoInput =
|
|
4989
|
-
setEmployeeInfoInput =
|
|
4990
|
-
var
|
|
5011
|
+
employeeInfoInput = _useState6[0],
|
|
5012
|
+
setEmployeeInfoInput = _useState6[1];
|
|
5013
|
+
var _useState7 = React.useState({
|
|
4991
5014
|
emp_level: 0,
|
|
4992
5015
|
entity: 0,
|
|
4993
5016
|
business_unit: 0,
|
|
@@ -4996,48 +5019,48 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4996
5019
|
manager_id: 0,
|
|
4997
5020
|
skip_manager_id: 0
|
|
4998
5021
|
}),
|
|
4999
|
-
cacheForAsyncDropdown =
|
|
5000
|
-
clearCacheForAsyncDropdown =
|
|
5001
|
-
var
|
|
5002
|
-
userTagType =
|
|
5003
|
-
setUserTagType =
|
|
5004
|
-
var
|
|
5005
|
-
scroll =
|
|
5006
|
-
setScroll =
|
|
5007
|
-
var
|
|
5008
|
-
customFieldsInput =
|
|
5009
|
-
setCustomFieldsInput =
|
|
5010
|
-
var
|
|
5011
|
-
travelRole =
|
|
5012
|
-
setTravelRole =
|
|
5013
|
-
var
|
|
5014
|
-
travelApproversInput =
|
|
5015
|
-
setTravelApproversInput =
|
|
5016
|
-
var
|
|
5022
|
+
cacheForAsyncDropdown = _useState7[0],
|
|
5023
|
+
clearCacheForAsyncDropdown = _useState7[1];
|
|
5024
|
+
var _useState8 = React.useState({}),
|
|
5025
|
+
userTagType = _useState8[0],
|
|
5026
|
+
setUserTagType = _useState8[1];
|
|
5027
|
+
var _useState9 = React.useState(false),
|
|
5028
|
+
scroll = _useState9[0],
|
|
5029
|
+
setScroll = _useState9[1];
|
|
5030
|
+
var _useState10 = React.useState({}),
|
|
5031
|
+
customFieldsInput = _useState10[0],
|
|
5032
|
+
setCustomFieldsInput = _useState10[1];
|
|
5033
|
+
var _useState11 = React.useState('traveler'),
|
|
5034
|
+
travelRole = _useState11[0],
|
|
5035
|
+
setTravelRole = _useState11[1];
|
|
5036
|
+
var _useState12 = React.useState({}),
|
|
5037
|
+
travelApproversInput = _useState12[0],
|
|
5038
|
+
setTravelApproversInput = _useState12[1];
|
|
5039
|
+
var _useState13 = React.useState({
|
|
5017
5040
|
value: '',
|
|
5018
5041
|
label: 'Select approver'
|
|
5019
5042
|
}),
|
|
5020
|
-
travelFYI =
|
|
5021
|
-
setTravelFYI =
|
|
5022
|
-
var
|
|
5023
|
-
membershipInfoInput =
|
|
5024
|
-
setMembershipInfoInput =
|
|
5025
|
-
var
|
|
5026
|
-
removedMembershipInfoInput =
|
|
5027
|
-
setRemovedMembershipInfoInput =
|
|
5028
|
-
var
|
|
5043
|
+
travelFYI = _useState13[0],
|
|
5044
|
+
setTravelFYI = _useState13[1];
|
|
5045
|
+
var _useState14 = React.useState([]),
|
|
5046
|
+
membershipInfoInput = _useState14[0],
|
|
5047
|
+
setMembershipInfoInput = _useState14[1];
|
|
5048
|
+
var _useState15 = React.useState([]),
|
|
5049
|
+
removedMembershipInfoInput = _useState15[0],
|
|
5050
|
+
setRemovedMembershipInfoInput = _useState15[1];
|
|
5051
|
+
var _useState16 = React.useState({
|
|
5029
5052
|
flight_seat_preference: '',
|
|
5030
5053
|
meal_preference: ''
|
|
5031
5054
|
}),
|
|
5032
|
-
travelPreferenceInfo =
|
|
5033
|
-
settravelPreferenceInfo =
|
|
5034
|
-
var
|
|
5055
|
+
travelPreferenceInfo = _useState16[0],
|
|
5056
|
+
settravelPreferenceInfo = _useState16[1];
|
|
5057
|
+
var _useState17 = React.useState({
|
|
5035
5058
|
trusted_traveller: '',
|
|
5036
5059
|
redress_number: ''
|
|
5037
5060
|
}),
|
|
5038
|
-
secureTravelInputInfo =
|
|
5039
|
-
setSecureTravelInputInfo =
|
|
5040
|
-
var
|
|
5061
|
+
secureTravelInputInfo = _useState17[0],
|
|
5062
|
+
setSecureTravelInputInfo = _useState17[1];
|
|
5063
|
+
var _useState18 = React.useState({
|
|
5041
5064
|
passport_issue_country: {
|
|
5042
5065
|
value: '',
|
|
5043
5066
|
label: 'Select country'
|
|
@@ -5052,39 +5075,39 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5052
5075
|
passport_photo: [],
|
|
5053
5076
|
travel_docs: []
|
|
5054
5077
|
}),
|
|
5055
|
-
passportInfoInput =
|
|
5056
|
-
setPassportInfoInput =
|
|
5057
|
-
var
|
|
5058
|
-
filesForDelete =
|
|
5059
|
-
setFilesForDelete =
|
|
5060
|
-
var
|
|
5061
|
-
profilePicDelete =
|
|
5062
|
-
setProfilePicDelete =
|
|
5063
|
-
var
|
|
5064
|
-
isAdditionalInfoExpanded =
|
|
5065
|
-
setAdditionalInfoFlag =
|
|
5066
|
-
var
|
|
5067
|
-
expenseRole =
|
|
5068
|
-
setExpenseRole =
|
|
5069
|
-
var
|
|
5070
|
-
expenseApproversInput =
|
|
5071
|
-
setExpenseApproversInput =
|
|
5072
|
-
var
|
|
5078
|
+
passportInfoInput = _useState18[0],
|
|
5079
|
+
setPassportInfoInput = _useState18[1];
|
|
5080
|
+
var _useState19 = React.useState([]),
|
|
5081
|
+
filesForDelete = _useState19[0],
|
|
5082
|
+
setFilesForDelete = _useState19[1];
|
|
5083
|
+
var _useState20 = React.useState([]),
|
|
5084
|
+
profilePicDelete = _useState20[0],
|
|
5085
|
+
setProfilePicDelete = _useState20[1];
|
|
5086
|
+
var _useState21 = React.useState(config.env.isTravelProduct && isProfile ? 'open' : ''),
|
|
5087
|
+
isAdditionalInfoExpanded = _useState21[0],
|
|
5088
|
+
setAdditionalInfoFlag = _useState21[1];
|
|
5089
|
+
var _useState22 = React.useState('submitter'),
|
|
5090
|
+
expenseRole = _useState22[0],
|
|
5091
|
+
setExpenseRole = _useState22[1];
|
|
5092
|
+
var _useState23 = React.useState({}),
|
|
5093
|
+
expenseApproversInput = _useState23[0],
|
|
5094
|
+
setExpenseApproversInput = _useState23[1];
|
|
5095
|
+
var _useState24 = React.useState({
|
|
5073
5096
|
value: '',
|
|
5074
5097
|
label: 'Select approver'
|
|
5075
5098
|
}),
|
|
5076
|
-
expenseFYI =
|
|
5077
|
-
setExpenseFYI =
|
|
5099
|
+
expenseFYI = _useState24[0],
|
|
5100
|
+
setExpenseFYI = _useState24[1];
|
|
5078
5101
|
var asyncSelectRefs = React.useRef({
|
|
5079
5102
|
emp_level: React.useRef(null),
|
|
5080
5103
|
entity: React.useRef(null),
|
|
5081
5104
|
business_unit: React.useRef(null),
|
|
5082
5105
|
department: React.useRef(null)
|
|
5083
5106
|
});
|
|
5084
|
-
var
|
|
5085
|
-
errorArray =
|
|
5086
|
-
setErrorArray =
|
|
5087
|
-
var
|
|
5107
|
+
var _useState25 = React.useState([]),
|
|
5108
|
+
errorArray = _useState25[0],
|
|
5109
|
+
setErrorArray = _useState25[1];
|
|
5110
|
+
var _useState26 = React.useState({
|
|
5088
5111
|
first_name: '',
|
|
5089
5112
|
last_name: '',
|
|
5090
5113
|
email: '',
|
|
@@ -5114,9 +5137,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5114
5137
|
userTagType: '',
|
|
5115
5138
|
profile_pic: ''
|
|
5116
5139
|
}),
|
|
5117
|
-
errorMsgs =
|
|
5118
|
-
setErrorMsgs =
|
|
5119
|
-
var
|
|
5140
|
+
errorMsgs = _useState26[0],
|
|
5141
|
+
setErrorMsgs = _useState26[1];
|
|
5142
|
+
var _useState27 = React.useState({
|
|
5120
5143
|
first_name: false,
|
|
5121
5144
|
last_name: false,
|
|
5122
5145
|
email: false,
|
|
@@ -5143,14 +5166,14 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5143
5166
|
userTagType: false,
|
|
5144
5167
|
profile_pic: false
|
|
5145
5168
|
}),
|
|
5146
|
-
inputChangeLog =
|
|
5147
|
-
updateInputChangeLog =
|
|
5148
|
-
var
|
|
5149
|
-
uploadedFiles =
|
|
5150
|
-
setUploadedFiles =
|
|
5151
|
-
var
|
|
5152
|
-
maxLengthForModal =
|
|
5153
|
-
setMaxLengthForModal =
|
|
5169
|
+
inputChangeLog = _useState27[0],
|
|
5170
|
+
updateInputChangeLog = _useState27[1];
|
|
5171
|
+
var _useState28 = React.useState([]),
|
|
5172
|
+
uploadedFiles = _useState28[0],
|
|
5173
|
+
setUploadedFiles = _useState28[1];
|
|
5174
|
+
var _useState29 = React.useState(70),
|
|
5175
|
+
maxLengthForModal = _useState29[0],
|
|
5176
|
+
setMaxLengthForModal = _useState29[1];
|
|
5154
5177
|
var defaultAddModalData = {
|
|
5155
5178
|
isOpen: false,
|
|
5156
5179
|
isError: false,
|
|
@@ -5166,9 +5189,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5166
5189
|
maxLength: maxLengthForModal,
|
|
5167
5190
|
minLength: 0
|
|
5168
5191
|
};
|
|
5169
|
-
var
|
|
5170
|
-
addModalData =
|
|
5171
|
-
setAddModalData =
|
|
5192
|
+
var _useState30 = React.useState(defaultAddModalData),
|
|
5193
|
+
addModalData = _useState30[0],
|
|
5194
|
+
setAddModalData = _useState30[1];
|
|
5172
5195
|
var onAddModalClose = function onAddModalClose() {
|
|
5173
5196
|
setAddModalData(_extends({}, defaultAddModalData));
|
|
5174
5197
|
};
|
|
@@ -5345,7 +5368,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5345
5368
|
_value = args._value,
|
|
5346
5369
|
_isError = args._isError,
|
|
5347
5370
|
_errorMsg = args._errorMsg;
|
|
5348
|
-
console.log(_name, _value);
|
|
5349
5371
|
setEmployeeInfoInput(_extends({}, employeeInfoInput, (_extends8 = {}, _extends8[_name] = _value, _extends8)));
|
|
5350
5372
|
updateError(_name, _isError, _errorMsg);
|
|
5351
5373
|
if (Object.hasOwnProperty.call(inputChangeLog, _name)) {
|
|
@@ -5379,7 +5401,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5379
5401
|
var _extends12;
|
|
5380
5402
|
var _name = _ref3._name,
|
|
5381
5403
|
_value = _ref3._value;
|
|
5382
|
-
console.log(_name, _value, 'travel');
|
|
5383
5404
|
setTravelApproversInput(_extends({}, travelApproversInput, (_extends12 = {}, _extends12[_name] = _value, _extends12)));
|
|
5384
5405
|
};
|
|
5385
5406
|
var onExpenseApproversInputChange = function onExpenseApproversInputChange(_ref4) {
|
|
@@ -5591,6 +5612,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5591
5612
|
}
|
|
5592
5613
|
}));
|
|
5593
5614
|
dispatch(fetchCountryCodes()).then(function (_res) {
|
|
5615
|
+
setCountryContactCode(_res);
|
|
5594
5616
|
if (isEditMode) {
|
|
5595
5617
|
if (!isProfile && !editUserId) return false;
|
|
5596
5618
|
dispatch(setStaticFieldsVisibility({
|
|
@@ -5912,7 +5934,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5912
5934
|
IUIToastMessageService$4.warningNotify(checkAnyError);
|
|
5913
5935
|
return Promise.resolve();
|
|
5914
5936
|
}
|
|
5915
|
-
console.log(employeeInfoInput, 'data');
|
|
5916
5937
|
if (employeeInfoInput.manager_id.value !== '') {
|
|
5917
5938
|
employeeInfoInput.manager_id = employeeInfoInput.manager.value;
|
|
5918
5939
|
}
|
|
@@ -5976,11 +5997,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5976
5997
|
}
|
|
5977
5998
|
}
|
|
5978
5999
|
for (var _key in employeeInfo) {
|
|
5979
|
-
console.log('key', _key);
|
|
5980
6000
|
if (Object.hasOwnProperty.call(employeeInfo, _key)) {
|
|
5981
|
-
|
|
5982
|
-
console.log('employeeInfo0000', (_employeeInfoInput$_k = employeeInfoInput[_key]) === null || _employeeInfoInput$_k === void 0 ? void 0 : _employeeInfoInput$_k.value, 'sajkdhjasj');
|
|
5983
|
-
if (employeeInfo[_key] === false && employeeInfoInput[_key] !== undefined && (typeof employeeInfoInput[_key] === 'string' && !employeeInfoInput[_key] || typeof employeeInfoInput[_key] === 'object' && !employeeInfoInput[_key].value || !employeeInfoInput[_key].value) === '' && fieldsVisibility.employee_info[_key] !== 2) {
|
|
6001
|
+
if (employeeInfo[_key] === false && employeeInfoInput[_key] !== undefined && (typeof employeeInfoInput[_key] === 'string' && !employeeInfoInput[_key] || typeof employeeInfoInput[_key] === 'object' && !employeeInfoInput[_key].value) && fieldsVisibility.employee_info[_key] !== 2) {
|
|
5984
6002
|
_isError = true;
|
|
5985
6003
|
if (_errorArray.indexOf(_key) === -1) _errorArray.push(_key);
|
|
5986
6004
|
_errorMsgs[_key] = ErrorMessages[_key];
|
|
@@ -6233,17 +6251,13 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6233
6251
|
if (verifyUserId) {
|
|
6234
6252
|
dispatch(showLoader());
|
|
6235
6253
|
dispatch(verifyUserInfo(verifyUserId)).then(function (res) {
|
|
6254
|
+
setNewCountryCode(res === null || res === void 0 ? void 0 : res.country_contact_code);
|
|
6236
6255
|
setPersonalInfoInput(function (prevState) {
|
|
6237
6256
|
return _extends({}, prevState, {
|
|
6238
|
-
first_name: res.
|
|
6239
|
-
last_name: res.
|
|
6257
|
+
first_name: res.first_name,
|
|
6258
|
+
last_name: res.last_name,
|
|
6240
6259
|
email: res.email,
|
|
6241
|
-
contact_number: res.
|
|
6242
|
-
dob: function () {
|
|
6243
|
-
var dt = new Date(res.dob);
|
|
6244
|
-
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
6245
|
-
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
6246
|
-
}(),
|
|
6260
|
+
contact_number: res === null || res === void 0 ? void 0 : res.contact_number,
|
|
6247
6261
|
gender: function () {
|
|
6248
6262
|
if (res.gender === 'male') return 'Male';else if (res.gender === 'female') return 'Female';else if (res.gender === 'others') return 'Others';else return '';
|
|
6249
6263
|
}()
|
|
@@ -8597,17 +8611,17 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8597
8611
|
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
8598
8612
|
};
|
|
8599
8613
|
var columns = [{
|
|
8600
|
-
id: '
|
|
8614
|
+
id: 'first_name',
|
|
8601
8615
|
label: 'Name',
|
|
8602
8616
|
minWidth: 250,
|
|
8603
8617
|
sortable: true,
|
|
8604
8618
|
cell: function cell(row) {
|
|
8605
8619
|
var _row$profile_pic2;
|
|
8606
8620
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIProfileBox, {
|
|
8607
|
-
firstName: row.
|
|
8608
|
-
lastName: row.
|
|
8621
|
+
firstName: row.first_name,
|
|
8622
|
+
lastName: row.last_name,
|
|
8609
8623
|
isLetterAvatar: row.profile_pic && row.profile_pic.presigned_url ? false : true,
|
|
8610
|
-
primaryText: row.
|
|
8624
|
+
primaryText: row.first_name + ' ' + row.last_name,
|
|
8611
8625
|
secondaryText: row.email,
|
|
8612
8626
|
letterAvatarTextColor: "black",
|
|
8613
8627
|
letterAvatarBackgroundColor: "#d3d3d3",
|
|
@@ -8616,7 +8630,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8616
8630
|
}));
|
|
8617
8631
|
}
|
|
8618
8632
|
}, {
|
|
8619
|
-
id: '
|
|
8633
|
+
id: 'created_at',
|
|
8620
8634
|
label: 'Requested on',
|
|
8621
8635
|
minWidth: 100,
|
|
8622
8636
|
sortable: true,
|
|
@@ -8626,7 +8640,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8626
8640
|
width: 100
|
|
8627
8641
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
8628
8642
|
className: clsx(styles$5.rowText, styles$5.textTransform)
|
|
8629
|
-
}, formatDate(row.
|
|
8643
|
+
}, formatDate(row.created_at)));
|
|
8630
8644
|
}
|
|
8631
8645
|
}, {
|
|
8632
8646
|
id: 'actions',
|
|
@@ -8899,7 +8913,7 @@ var UserList = function UserList(_ref2) {
|
|
|
8899
8913
|
var _React$useState11 = React__default.useState('asc'),
|
|
8900
8914
|
signup_order = _React$useState11[0],
|
|
8901
8915
|
setSignUpOrder = _React$useState11[1];
|
|
8902
|
-
var _React$useState12 = React__default.useState('
|
|
8916
|
+
var _React$useState12 = React__default.useState('first_name'),
|
|
8903
8917
|
signup_orderBy = _React$useState12[0],
|
|
8904
8918
|
setSignUpOrderBy = _React$useState12[1];
|
|
8905
8919
|
var _useState22 = React.useState(''),
|
|
@@ -8922,7 +8936,11 @@ var UserList = function UserList(_ref2) {
|
|
|
8922
8936
|
}),
|
|
8923
8937
|
signupRequestListInfo = _useSelector3.signupRequestListInfo;
|
|
8924
8938
|
var redirectToNotifications = function redirectToNotifications() {
|
|
8925
|
-
|
|
8939
|
+
if (config.routes.notification) {
|
|
8940
|
+
history.push({
|
|
8941
|
+
pathname: config.routes.notification.path
|
|
8942
|
+
});
|
|
8943
|
+
}
|
|
8926
8944
|
};
|
|
8927
8945
|
var openDeactivateModal = function openDeactivateModal() {
|
|
8928
8946
|
if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
|
|
@@ -9544,7 +9562,7 @@ var UserList = function UserList(_ref2) {
|
|
|
9544
9562
|
variant: "body2",
|
|
9545
9563
|
className: clsx(styles$5.description)
|
|
9546
9564
|
}, "Verify and add users to allow them to start using ITILITE. Set up preferences for receiving sign up request updates in", ' ', /*#__PURE__*/React__default.createElement("span", {
|
|
9547
|
-
onClick:
|
|
9565
|
+
onClick: redirectToNotifications,
|
|
9548
9566
|
className: clsx(config.routes.notification && 'iui__cursor-pointer iui__border--bottom_solid_black500-1')
|
|
9549
9567
|
}, "Notifications"))), /*#__PURE__*/React__default.createElement(SingupRequests, {
|
|
9550
9568
|
data: signupRequestListInfo,
|
|
@@ -10082,7 +10100,6 @@ function EditPanelDialog(_ref) {
|
|
|
10082
10100
|
}, [rowData]);
|
|
10083
10101
|
var history = reactRouterDom.useHistory();
|
|
10084
10102
|
var handleAddPageNavigation = function handleAddPageNavigation() {
|
|
10085
|
-
console.log(rowData);
|
|
10086
10103
|
history.push({
|
|
10087
10104
|
pathname: config.routes.users.add.path,
|
|
10088
10105
|
state: rowData
|