@itilite/iui-user-management 1.3.13 → 1.3.14
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 +1 -1
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 () {});
|
|
@@ -4958,7 +4957,31 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4958
4957
|
}
|
|
4959
4958
|
setProductAccess(_productAccess);
|
|
4960
4959
|
};
|
|
4961
|
-
var _useState2 = React.useState(
|
|
4960
|
+
var _useState2 = React.useState(''),
|
|
4961
|
+
newCountryCode = _useState2[0],
|
|
4962
|
+
setNewCountryCode = _useState2[1];
|
|
4963
|
+
var _useState3 = React.useState(),
|
|
4964
|
+
countryDialCode = _useState3[0],
|
|
4965
|
+
setCountryDialCode = _useState3[1];
|
|
4966
|
+
var _useState4 = React.useState([]),
|
|
4967
|
+
countryContactCode = _useState4[0],
|
|
4968
|
+
setCountryContactCode = _useState4[1];
|
|
4969
|
+
React.useEffect(function () {
|
|
4970
|
+
var countryObject = countryContactCode.find(function (t) {
|
|
4971
|
+
return t.dial_code === countryDialCode;
|
|
4972
|
+
});
|
|
4973
|
+
if (countryObject) {
|
|
4974
|
+
setPersonalInfoInput(_extends({}, personalInfoInput, {
|
|
4975
|
+
country_code: countryObject.code
|
|
4976
|
+
}));
|
|
4977
|
+
}
|
|
4978
|
+
}, [countryDialCode]);
|
|
4979
|
+
React.useEffect(function () {
|
|
4980
|
+
var extractedNumber = newCountryCode.substring(1);
|
|
4981
|
+
var convertedNumber = parseInt(extractedNumber);
|
|
4982
|
+
setCountryDialCode(convertedNumber);
|
|
4983
|
+
}, [newCountryCode]);
|
|
4984
|
+
var _useState5 = React.useState({
|
|
4962
4985
|
first_name: '',
|
|
4963
4986
|
last_name: '',
|
|
4964
4987
|
email: '',
|
|
@@ -4969,9 +4992,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
4969
4992
|
contact_country_code: '',
|
|
4970
4993
|
profile_pic: []
|
|
4971
4994
|
}),
|
|
4972
|
-
personalInfoInput =
|
|
4973
|
-
setPersonalInfoInput =
|
|
4974
|
-
var
|
|
4995
|
+
personalInfoInput = _useState5[0],
|
|
4996
|
+
setPersonalInfoInput = _useState5[1];
|
|
4997
|
+
var _useState6 = React.useState({
|
|
4975
4998
|
emp_level: {
|
|
4976
4999
|
value: '',
|
|
4977
5000
|
label: 'Select employee level'
|
|
@@ -5004,9 +5027,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5004
5027
|
label: defaultCurrency
|
|
5005
5028
|
}
|
|
5006
5029
|
}),
|
|
5007
|
-
employeeInfoInput =
|
|
5008
|
-
setEmployeeInfoInput =
|
|
5009
|
-
var
|
|
5030
|
+
employeeInfoInput = _useState6[0],
|
|
5031
|
+
setEmployeeInfoInput = _useState6[1];
|
|
5032
|
+
var _useState7 = React.useState({
|
|
5010
5033
|
emp_level: 0,
|
|
5011
5034
|
entity: 0,
|
|
5012
5035
|
business_unit: 0,
|
|
@@ -5015,48 +5038,48 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5015
5038
|
manager_id: 0,
|
|
5016
5039
|
skip_manager_id: 0
|
|
5017
5040
|
}),
|
|
5018
|
-
cacheForAsyncDropdown =
|
|
5019
|
-
clearCacheForAsyncDropdown =
|
|
5020
|
-
var
|
|
5021
|
-
userTagType =
|
|
5022
|
-
setUserTagType =
|
|
5023
|
-
var
|
|
5024
|
-
scroll =
|
|
5025
|
-
setScroll =
|
|
5026
|
-
var
|
|
5027
|
-
customFieldsInput =
|
|
5028
|
-
setCustomFieldsInput =
|
|
5029
|
-
var
|
|
5030
|
-
travelRole =
|
|
5031
|
-
setTravelRole =
|
|
5032
|
-
var
|
|
5033
|
-
travelApproversInput =
|
|
5034
|
-
setTravelApproversInput =
|
|
5035
|
-
var
|
|
5041
|
+
cacheForAsyncDropdown = _useState7[0],
|
|
5042
|
+
clearCacheForAsyncDropdown = _useState7[1];
|
|
5043
|
+
var _useState8 = React.useState({}),
|
|
5044
|
+
userTagType = _useState8[0],
|
|
5045
|
+
setUserTagType = _useState8[1];
|
|
5046
|
+
var _useState9 = React.useState(false),
|
|
5047
|
+
scroll = _useState9[0],
|
|
5048
|
+
setScroll = _useState9[1];
|
|
5049
|
+
var _useState10 = React.useState({}),
|
|
5050
|
+
customFieldsInput = _useState10[0],
|
|
5051
|
+
setCustomFieldsInput = _useState10[1];
|
|
5052
|
+
var _useState11 = React.useState('traveler'),
|
|
5053
|
+
travelRole = _useState11[0],
|
|
5054
|
+
setTravelRole = _useState11[1];
|
|
5055
|
+
var _useState12 = React.useState({}),
|
|
5056
|
+
travelApproversInput = _useState12[0],
|
|
5057
|
+
setTravelApproversInput = _useState12[1];
|
|
5058
|
+
var _useState13 = React.useState({
|
|
5036
5059
|
value: '',
|
|
5037
5060
|
label: 'Select approver'
|
|
5038
5061
|
}),
|
|
5039
|
-
travelFYI =
|
|
5040
|
-
setTravelFYI =
|
|
5041
|
-
var
|
|
5042
|
-
membershipInfoInput =
|
|
5043
|
-
setMembershipInfoInput =
|
|
5044
|
-
var
|
|
5045
|
-
removedMembershipInfoInput =
|
|
5046
|
-
setRemovedMembershipInfoInput =
|
|
5047
|
-
var
|
|
5062
|
+
travelFYI = _useState13[0],
|
|
5063
|
+
setTravelFYI = _useState13[1];
|
|
5064
|
+
var _useState14 = React.useState([]),
|
|
5065
|
+
membershipInfoInput = _useState14[0],
|
|
5066
|
+
setMembershipInfoInput = _useState14[1];
|
|
5067
|
+
var _useState15 = React.useState([]),
|
|
5068
|
+
removedMembershipInfoInput = _useState15[0],
|
|
5069
|
+
setRemovedMembershipInfoInput = _useState15[1];
|
|
5070
|
+
var _useState16 = React.useState({
|
|
5048
5071
|
flight_seat_preference: '',
|
|
5049
5072
|
meal_preference: ''
|
|
5050
5073
|
}),
|
|
5051
|
-
travelPreferenceInfo =
|
|
5052
|
-
settravelPreferenceInfo =
|
|
5053
|
-
var
|
|
5074
|
+
travelPreferenceInfo = _useState16[0],
|
|
5075
|
+
settravelPreferenceInfo = _useState16[1];
|
|
5076
|
+
var _useState17 = React.useState({
|
|
5054
5077
|
trusted_traveller: '',
|
|
5055
5078
|
redress_number: ''
|
|
5056
5079
|
}),
|
|
5057
|
-
secureTravelInputInfo =
|
|
5058
|
-
setSecureTravelInputInfo =
|
|
5059
|
-
var
|
|
5080
|
+
secureTravelInputInfo = _useState17[0],
|
|
5081
|
+
setSecureTravelInputInfo = _useState17[1];
|
|
5082
|
+
var _useState18 = React.useState({
|
|
5060
5083
|
passport_issue_country: {
|
|
5061
5084
|
value: '',
|
|
5062
5085
|
label: 'Select country'
|
|
@@ -5071,39 +5094,39 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5071
5094
|
passport_photo: [],
|
|
5072
5095
|
travel_docs: []
|
|
5073
5096
|
}),
|
|
5074
|
-
passportInfoInput =
|
|
5075
|
-
setPassportInfoInput =
|
|
5076
|
-
var
|
|
5077
|
-
filesForDelete =
|
|
5078
|
-
setFilesForDelete =
|
|
5079
|
-
var
|
|
5080
|
-
profilePicDelete =
|
|
5081
|
-
setProfilePicDelete =
|
|
5082
|
-
var
|
|
5083
|
-
isAdditionalInfoExpanded =
|
|
5084
|
-
setAdditionalInfoFlag =
|
|
5085
|
-
var
|
|
5086
|
-
expenseRole =
|
|
5087
|
-
setExpenseRole =
|
|
5088
|
-
var
|
|
5089
|
-
expenseApproversInput =
|
|
5090
|
-
setExpenseApproversInput =
|
|
5091
|
-
var
|
|
5097
|
+
passportInfoInput = _useState18[0],
|
|
5098
|
+
setPassportInfoInput = _useState18[1];
|
|
5099
|
+
var _useState19 = React.useState([]),
|
|
5100
|
+
filesForDelete = _useState19[0],
|
|
5101
|
+
setFilesForDelete = _useState19[1];
|
|
5102
|
+
var _useState20 = React.useState([]),
|
|
5103
|
+
profilePicDelete = _useState20[0],
|
|
5104
|
+
setProfilePicDelete = _useState20[1];
|
|
5105
|
+
var _useState21 = React.useState(config.env.isTravelProduct && isProfile ? 'open' : ''),
|
|
5106
|
+
isAdditionalInfoExpanded = _useState21[0],
|
|
5107
|
+
setAdditionalInfoFlag = _useState21[1];
|
|
5108
|
+
var _useState22 = React.useState('submitter'),
|
|
5109
|
+
expenseRole = _useState22[0],
|
|
5110
|
+
setExpenseRole = _useState22[1];
|
|
5111
|
+
var _useState23 = React.useState({}),
|
|
5112
|
+
expenseApproversInput = _useState23[0],
|
|
5113
|
+
setExpenseApproversInput = _useState23[1];
|
|
5114
|
+
var _useState24 = React.useState({
|
|
5092
5115
|
value: '',
|
|
5093
5116
|
label: 'Select approver'
|
|
5094
5117
|
}),
|
|
5095
|
-
expenseFYI =
|
|
5096
|
-
setExpenseFYI =
|
|
5118
|
+
expenseFYI = _useState24[0],
|
|
5119
|
+
setExpenseFYI = _useState24[1];
|
|
5097
5120
|
var asyncSelectRefs = React.useRef({
|
|
5098
5121
|
emp_level: React.useRef(null),
|
|
5099
5122
|
entity: React.useRef(null),
|
|
5100
5123
|
business_unit: React.useRef(null),
|
|
5101
5124
|
department: React.useRef(null)
|
|
5102
5125
|
});
|
|
5103
|
-
var
|
|
5104
|
-
errorArray =
|
|
5105
|
-
setErrorArray =
|
|
5106
|
-
var
|
|
5126
|
+
var _useState25 = React.useState([]),
|
|
5127
|
+
errorArray = _useState25[0],
|
|
5128
|
+
setErrorArray = _useState25[1];
|
|
5129
|
+
var _useState26 = React.useState({
|
|
5107
5130
|
first_name: '',
|
|
5108
5131
|
last_name: '',
|
|
5109
5132
|
email: '',
|
|
@@ -5133,9 +5156,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5133
5156
|
userTagType: '',
|
|
5134
5157
|
profile_pic: ''
|
|
5135
5158
|
}),
|
|
5136
|
-
errorMsgs =
|
|
5137
|
-
setErrorMsgs =
|
|
5138
|
-
var
|
|
5159
|
+
errorMsgs = _useState26[0],
|
|
5160
|
+
setErrorMsgs = _useState26[1];
|
|
5161
|
+
var _useState27 = React.useState({
|
|
5139
5162
|
first_name: false,
|
|
5140
5163
|
last_name: false,
|
|
5141
5164
|
email: false,
|
|
@@ -5162,14 +5185,14 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5162
5185
|
userTagType: false,
|
|
5163
5186
|
profile_pic: false
|
|
5164
5187
|
}),
|
|
5165
|
-
inputChangeLog =
|
|
5166
|
-
updateInputChangeLog =
|
|
5167
|
-
var
|
|
5168
|
-
uploadedFiles =
|
|
5169
|
-
setUploadedFiles =
|
|
5170
|
-
var
|
|
5171
|
-
maxLengthForModal =
|
|
5172
|
-
setMaxLengthForModal =
|
|
5188
|
+
inputChangeLog = _useState27[0],
|
|
5189
|
+
updateInputChangeLog = _useState27[1];
|
|
5190
|
+
var _useState28 = React.useState([]),
|
|
5191
|
+
uploadedFiles = _useState28[0],
|
|
5192
|
+
setUploadedFiles = _useState28[1];
|
|
5193
|
+
var _useState29 = React.useState(70),
|
|
5194
|
+
maxLengthForModal = _useState29[0],
|
|
5195
|
+
setMaxLengthForModal = _useState29[1];
|
|
5173
5196
|
var defaultAddModalData = {
|
|
5174
5197
|
isOpen: false,
|
|
5175
5198
|
isError: false,
|
|
@@ -5185,9 +5208,9 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5185
5208
|
maxLength: maxLengthForModal,
|
|
5186
5209
|
minLength: 0
|
|
5187
5210
|
};
|
|
5188
|
-
var
|
|
5189
|
-
addModalData =
|
|
5190
|
-
setAddModalData =
|
|
5211
|
+
var _useState30 = React.useState(defaultAddModalData),
|
|
5212
|
+
addModalData = _useState30[0],
|
|
5213
|
+
setAddModalData = _useState30[1];
|
|
5191
5214
|
var onAddModalClose = function onAddModalClose() {
|
|
5192
5215
|
setAddModalData(_extends({}, defaultAddModalData));
|
|
5193
5216
|
};
|
|
@@ -5364,7 +5387,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5364
5387
|
_value = args._value,
|
|
5365
5388
|
_isError = args._isError,
|
|
5366
5389
|
_errorMsg = args._errorMsg;
|
|
5367
|
-
console.log(_name, _value);
|
|
5368
5390
|
setEmployeeInfoInput(_extends({}, employeeInfoInput, (_extends8 = {}, _extends8[_name] = _value, _extends8)));
|
|
5369
5391
|
updateError(_name, _isError, _errorMsg);
|
|
5370
5392
|
if (Object.hasOwnProperty.call(inputChangeLog, _name)) {
|
|
@@ -5398,7 +5420,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5398
5420
|
var _extends12;
|
|
5399
5421
|
var _name = _ref3._name,
|
|
5400
5422
|
_value = _ref3._value;
|
|
5401
|
-
console.log(_name, _value, 'travel');
|
|
5402
5423
|
setTravelApproversInput(_extends({}, travelApproversInput, (_extends12 = {}, _extends12[_name] = _value, _extends12)));
|
|
5403
5424
|
};
|
|
5404
5425
|
var onExpenseApproversInputChange = function onExpenseApproversInputChange(_ref4) {
|
|
@@ -5610,6 +5631,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5610
5631
|
}
|
|
5611
5632
|
}));
|
|
5612
5633
|
dispatch(fetchCountryCodes()).then(function (_res) {
|
|
5634
|
+
setCountryContactCode(_res);
|
|
5613
5635
|
if (isEditMode) {
|
|
5614
5636
|
if (!isProfile && !editUserId) return false;
|
|
5615
5637
|
dispatch(setStaticFieldsVisibility({
|
|
@@ -5931,7 +5953,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5931
5953
|
IUIToastMessageService$4.warningNotify(checkAnyError);
|
|
5932
5954
|
return Promise.resolve();
|
|
5933
5955
|
}
|
|
5934
|
-
console.log(employeeInfoInput, 'data');
|
|
5935
5956
|
if (employeeInfoInput.manager_id.value !== '') {
|
|
5936
5957
|
employeeInfoInput.manager_id = employeeInfoInput.manager.value;
|
|
5937
5958
|
}
|
|
@@ -5995,11 +6016,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5995
6016
|
}
|
|
5996
6017
|
}
|
|
5997
6018
|
for (var _key in employeeInfo) {
|
|
5998
|
-
console.log('key', _key);
|
|
5999
6019
|
if (Object.hasOwnProperty.call(employeeInfo, _key)) {
|
|
6000
|
-
|
|
6001
|
-
console.log('employeeInfo0000', (_employeeInfoInput$_k = employeeInfoInput[_key]) === null || _employeeInfoInput$_k === void 0 ? void 0 : _employeeInfoInput$_k.value, 'sajkdhjasj');
|
|
6002
|
-
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) {
|
|
6020
|
+
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) {
|
|
6003
6021
|
_isError = true;
|
|
6004
6022
|
if (_errorArray.indexOf(_key) === -1) _errorArray.push(_key);
|
|
6005
6023
|
_errorMsgs[_key] = ErrorMessages[_key];
|
|
@@ -6255,17 +6273,13 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6255
6273
|
if (verifyUserId) {
|
|
6256
6274
|
dispatch(showLoader());
|
|
6257
6275
|
dispatch(verifyUserInfo(verifyUserId)).then(function (res) {
|
|
6276
|
+
setNewCountryCode(res === null || res === void 0 ? void 0 : res.country_contact_code);
|
|
6258
6277
|
setPersonalInfoInput(function (prevState) {
|
|
6259
6278
|
return _extends({}, prevState, {
|
|
6260
|
-
first_name: res.
|
|
6261
|
-
last_name: res.
|
|
6279
|
+
first_name: res.first_name,
|
|
6280
|
+
last_name: res.last_name,
|
|
6262
6281
|
email: res.email,
|
|
6263
|
-
contact_number: res.
|
|
6264
|
-
dob: function () {
|
|
6265
|
-
var dt = new Date(res.dob);
|
|
6266
|
-
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
6267
|
-
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
6268
|
-
}(),
|
|
6282
|
+
contact_number: res === null || res === void 0 ? void 0 : res.contact_number,
|
|
6269
6283
|
gender: function () {
|
|
6270
6284
|
if (res.gender === 'male') return 'Male';else if (res.gender === 'female') return 'Female';else if (res.gender === 'others') return 'Others';else return '';
|
|
6271
6285
|
}()
|
|
@@ -8619,17 +8633,17 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8619
8633
|
return dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear();
|
|
8620
8634
|
};
|
|
8621
8635
|
var columns = [{
|
|
8622
|
-
id: '
|
|
8636
|
+
id: 'first_name',
|
|
8623
8637
|
label: 'Name',
|
|
8624
8638
|
minWidth: 250,
|
|
8625
8639
|
sortable: true,
|
|
8626
8640
|
cell: function cell(row) {
|
|
8627
8641
|
var _row$profile_pic2;
|
|
8628
8642
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(iuistyles.IUIProfileBox, {
|
|
8629
|
-
firstName: row.
|
|
8630
|
-
lastName: row.
|
|
8643
|
+
firstName: row.first_name,
|
|
8644
|
+
lastName: row.last_name,
|
|
8631
8645
|
isLetterAvatar: row.profile_pic && row.profile_pic.presigned_url ? false : true,
|
|
8632
|
-
primaryText: row.
|
|
8646
|
+
primaryText: row.first_name + ' ' + row.last_name,
|
|
8633
8647
|
secondaryText: row.email,
|
|
8634
8648
|
letterAvatarTextColor: "black",
|
|
8635
8649
|
letterAvatarBackgroundColor: "#d3d3d3",
|
|
@@ -8638,7 +8652,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8638
8652
|
}));
|
|
8639
8653
|
}
|
|
8640
8654
|
}, {
|
|
8641
|
-
id: '
|
|
8655
|
+
id: 'created_at',
|
|
8642
8656
|
label: 'Requested on',
|
|
8643
8657
|
minWidth: 100,
|
|
8644
8658
|
sortable: true,
|
|
@@ -8648,7 +8662,7 @@ var SingupRequests = function SingupRequests(props) {
|
|
|
8648
8662
|
width: 100
|
|
8649
8663
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
8650
8664
|
className: clsx(styles$5.rowText, styles$5.textTransform)
|
|
8651
|
-
}, formatDate(row.
|
|
8665
|
+
}, formatDate(row.created_at)));
|
|
8652
8666
|
}
|
|
8653
8667
|
}, {
|
|
8654
8668
|
id: 'actions',
|
|
@@ -8921,7 +8935,7 @@ var UserList = function UserList(_ref2) {
|
|
|
8921
8935
|
var _React$useState11 = React__default.useState('asc'),
|
|
8922
8936
|
signup_order = _React$useState11[0],
|
|
8923
8937
|
setSignUpOrder = _React$useState11[1];
|
|
8924
|
-
var _React$useState12 = React__default.useState('
|
|
8938
|
+
var _React$useState12 = React__default.useState('first_name'),
|
|
8925
8939
|
signup_orderBy = _React$useState12[0],
|
|
8926
8940
|
setSignUpOrderBy = _React$useState12[1];
|
|
8927
8941
|
var _useState22 = React.useState(''),
|
|
@@ -8944,7 +8958,11 @@ var UserList = function UserList(_ref2) {
|
|
|
8944
8958
|
}),
|
|
8945
8959
|
signupRequestListInfo = _useSelector3.signupRequestListInfo;
|
|
8946
8960
|
var redirectToNotifications = function redirectToNotifications() {
|
|
8947
|
-
|
|
8961
|
+
if (config.routes.notification) {
|
|
8962
|
+
history.push({
|
|
8963
|
+
pathname: config.routes.notification.path
|
|
8964
|
+
});
|
|
8965
|
+
}
|
|
8948
8966
|
};
|
|
8949
8967
|
var openDeactivateModal = function openDeactivateModal() {
|
|
8950
8968
|
if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
|
|
@@ -9563,7 +9581,7 @@ var UserList = function UserList(_ref2) {
|
|
|
9563
9581
|
variant: "body2",
|
|
9564
9582
|
className: clsx(styles$5.description)
|
|
9565
9583
|
}, "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", {
|
|
9566
|
-
onClick:
|
|
9584
|
+
onClick: redirectToNotifications,
|
|
9567
9585
|
className: clsx(config.routes.notification && 'iui__cursor-pointer iui__border--bottom_solid_black500-1')
|
|
9568
9586
|
}, "Notifications"))), /*#__PURE__*/React__default.createElement(SingupRequests, {
|
|
9569
9587
|
data: signupRequestListInfo,
|
|
@@ -10101,7 +10119,6 @@ function EditPanelDialog(_ref) {
|
|
|
10101
10119
|
}, [rowData]);
|
|
10102
10120
|
var history = reactRouterDom.useHistory();
|
|
10103
10121
|
var handleAddPageNavigation = function handleAddPageNavigation() {
|
|
10104
|
-
console.log(rowData);
|
|
10105
10122
|
history.push({
|
|
10106
10123
|
pathname: config.routes.users.add.path,
|
|
10107
10124
|
state: rowData
|