@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.
@@ -4940,6 +4940,7 @@ var ErrorMessages = {
4940
4940
  passport_expiry_date: 'Please enter passport expiry date.',
4941
4941
  passport_photo: 'Please attach passport photo.',
4942
4942
  travel_docs: 'Please attach travel docs.',
4943
+ products: 'Please select atleast one product access.',
4943
4944
  only_cards_products: 'Select at least one additional product if opting for cards.',
4944
4945
  none_products: 'Select at least one product. If opting for cards, please choose at least one additional product.'
4945
4946
  };
@@ -5119,7 +5120,7 @@ var UserAddEdit = function UserAddEdit(props) {
5119
5120
  if (_errorArray2.indexOf('products') === -1) {
5120
5121
  _errorArray2.push('products');
5121
5122
  }
5122
- _errorMsgs2.products = ErrorMessages.none_products;
5123
+ _errorMsgs2.products = ErrorMessages.products;
5123
5124
  setErrorArray(_errorArray2);
5124
5125
  setErrorMsgs(_errorMsgs2);
5125
5126
  var _el = document.getElementById('products');
@@ -5536,7 +5537,8 @@ var UserAddEdit = function UserAddEdit(props) {
5536
5537
  travel_docs: '',
5537
5538
  products: '',
5538
5539
  userTagType: '',
5539
- profile_pic: ''
5540
+ profile_pic: '',
5541
+ cards_admin: ''
5540
5542
  }),
5541
5543
  errorMsgs = _useState28[0],
5542
5544
  setErrorMsgs = _useState28[1];
@@ -6384,6 +6386,10 @@ var UserAddEdit = function UserAddEdit(props) {
6384
6386
  var allMandatoryFields = ['first_name', 'last_name', 'email'];
6385
6387
  if (cardsErrorMsg) {
6386
6388
  _isError = true;
6389
+ _errorMsgs.cards_admin = "You are not authorized person to make someone admin";
6390
+ } else {
6391
+ _isError = false;
6392
+ _errorMsgs.cards_admin = '';
6387
6393
  }
6388
6394
  allMandatoryFields.forEach(function (key, index) {
6389
6395
  if (personalInfoInput[key] === '') {
@@ -6939,7 +6945,7 @@ var UserAddEdit = function UserAddEdit(props) {
6939
6945
  md: 4
6940
6946
  }, /*#__PURE__*/React.createElement(IUILabel, {
6941
6947
  label: "Product access",
6942
- description: isProfile ? '' : 'Please select a product. Cards are available along with at least one additional product.',
6948
+ description: isProfile ? '' : 'Select at least one product',
6943
6949
  headerType: true,
6944
6950
  required: true
6945
6951
  })), /*#__PURE__*/React.createElement(IUIGrid, {