@itilite/iui-user-management 0.4.58 → 0.4.59
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 +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4943,6 +4943,7 @@ var ErrorMessages = {
|
|
|
4943
4943
|
passport_expiry_date: 'Please enter passport expiry date.',
|
|
4944
4944
|
passport_photo: 'Please attach passport photo.',
|
|
4945
4945
|
travel_docs: 'Please attach travel docs.',
|
|
4946
|
+
products: 'Please select atleast one product access.',
|
|
4946
4947
|
only_cards_products: 'Select at least one additional product if opting for cards.',
|
|
4947
4948
|
none_products: 'Select at least one product. If opting for cards, please choose at least one additional product.'
|
|
4948
4949
|
};
|
|
@@ -5122,7 +5123,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5122
5123
|
if (_errorArray2.indexOf('products') === -1) {
|
|
5123
5124
|
_errorArray2.push('products');
|
|
5124
5125
|
}
|
|
5125
|
-
_errorMsgs2.products = ErrorMessages.
|
|
5126
|
+
_errorMsgs2.products = ErrorMessages.products;
|
|
5126
5127
|
setErrorArray(_errorArray2);
|
|
5127
5128
|
setErrorMsgs(_errorMsgs2);
|
|
5128
5129
|
var _el = document.getElementById('products');
|
|
@@ -5539,7 +5540,8 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
5539
5540
|
travel_docs: '',
|
|
5540
5541
|
products: '',
|
|
5541
5542
|
userTagType: '',
|
|
5542
|
-
profile_pic: ''
|
|
5543
|
+
profile_pic: '',
|
|
5544
|
+
cards_admin: ''
|
|
5543
5545
|
}),
|
|
5544
5546
|
errorMsgs = _useState28[0],
|
|
5545
5547
|
setErrorMsgs = _useState28[1];
|
|
@@ -6387,6 +6389,10 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6387
6389
|
var allMandatoryFields = ['first_name', 'last_name', 'email'];
|
|
6388
6390
|
if (cardsErrorMsg) {
|
|
6389
6391
|
_isError = true;
|
|
6392
|
+
_errorMsgs.cards_admin = "You are not authorized person to make someone admin";
|
|
6393
|
+
} else {
|
|
6394
|
+
_isError = false;
|
|
6395
|
+
_errorMsgs.cards_admin = '';
|
|
6390
6396
|
}
|
|
6391
6397
|
allMandatoryFields.forEach(function (key, index) {
|
|
6392
6398
|
if (personalInfoInput[key] === '') {
|
|
@@ -6942,7 +6948,7 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6942
6948
|
md: 4
|
|
6943
6949
|
}, /*#__PURE__*/React__default.createElement(iuistyles.IUILabel, {
|
|
6944
6950
|
label: "Product access",
|
|
6945
|
-
description: isProfile ? '' : '
|
|
6951
|
+
description: isProfile ? '' : 'Select at least one product',
|
|
6946
6952
|
headerType: true,
|
|
6947
6953
|
required: true
|
|
6948
6954
|
})), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
|