@itilite/iui-user-management 0.2.3 → 0.2.4

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 CHANGED
@@ -2993,7 +2993,7 @@ var workInfo = [{
2993
2993
  value: 'employee_level',
2994
2994
  component: /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
2995
2995
  className: "iui__font--color-link iui__font--weight-500"
2996
- }, "+ Add Employee Level"),
2996
+ }, "+ Add employee level"),
2997
2997
  callback: null
2998
2998
  }
2999
2999
  }, {
@@ -3038,7 +3038,7 @@ var workInfo = [{
3038
3038
  value: 'entity',
3039
3039
  component: /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
3040
3040
  className: "iui__font--color-link iui__font--weight-500"
3041
- }, "+ Add Entity"),
3041
+ }, "+ Add entity"),
3042
3042
  callback: null
3043
3043
  }
3044
3044
  }, {
@@ -3060,7 +3060,7 @@ var workInfo = [{
3060
3060
  value: 'business_unit',
3061
3061
  component: /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
3062
3062
  className: "iui__font--color-link iui__font--weight-500"
3063
- }, "+ Add Business Unit"),
3063
+ }, "+ Add business unit"),
3064
3064
  callback: null
3065
3065
  }
3066
3066
  }, {
@@ -3082,7 +3082,7 @@ var workInfo = [{
3082
3082
  value: 'department',
3083
3083
  component: /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
3084
3084
  className: "iui__font--color-link iui__font--weight-500"
3085
- }, "+ Add Department"),
3085
+ }, "+ Add department"),
3086
3086
  callback: null
3087
3087
  }
3088
3088
  }, {
@@ -5179,16 +5179,11 @@ var UserAddEdit = function UserAddEdit(props) {
5179
5179
  } else if (id === 'department') {
5180
5180
  title = 'Department';
5181
5181
  } else if (id === 'business_unit') {
5182
- title = 'Business Unit';
5182
+ title = 'Business unit';
5183
5183
  } else if (id === 'employee_level') {
5184
- title = 'Employee Level';
5184
+ title = 'Employee level';
5185
5185
  }
5186
5186
 
5187
- console.log(_extends({}, addModalData, {
5188
- isOpen: true,
5189
- title: title,
5190
- id: id
5191
- }));
5192
5187
  setAddModalData(_extends({}, addModalData, {
5193
5188
  isOpen: true,
5194
5189
  title: title,
@@ -5210,7 +5205,6 @@ var UserAddEdit = function UserAddEdit(props) {
5210
5205
  })).then(function (res) {
5211
5206
  var _extends2;
5212
5207
 
5213
- console.log(res, "success add " + addModalData.title + " response");
5214
5208
  setAddModalData(_extends({}, addModalData, {
5215
5209
  isOpen: false
5216
5210
  }));
@@ -5220,11 +5214,9 @@ var UserAddEdit = function UserAddEdit(props) {
5220
5214
  value: res.data.value,
5221
5215
  label: res.data.label
5222
5216
  }, _extends2)));
5223
- console.log('Set new value', res.data.label);
5224
5217
  clearCacheForAsyncDropdown(function (prevState) {
5225
5218
  var _extends3;
5226
5219
 
5227
- console.log('ClearCache function called');
5228
5220
  return _extends({}, prevState, (_extends3 = {}, _extends3[tempKey] = prevState[tempKey] + 1, _extends3));
5229
5221
  });
5230
5222
  dispatch(stopLoader());
@@ -5487,7 +5479,7 @@ var UserAddEdit = function UserAddEdit(props) {
5487
5479
  if ((_name === 'passport_photo' || _name === 'travel_docs') && _obj.openFile === true) {
5488
5480
  if (_obj.file.isExistingFile) {
5489
5481
  var link = document.createElement('a');
5490
- link.setAttribute('download', _obj.file.name);
5482
+ link.setAttribute('target', '_blank');
5491
5483
  link.href = _obj.file.presigned_url;
5492
5484
  document.body.appendChild(link);
5493
5485
  link.click();
@@ -5501,7 +5493,7 @@ var UserAddEdit = function UserAddEdit(props) {
5501
5493
  })).then(function (res) {
5502
5494
  dispatch(stopLoader());
5503
5495
  var link = document.createElement('a');
5504
- link.setAttribute('download', _obj.file.returned_file_name);
5496
+ link.setAttribute('target', '_blank');
5505
5497
  link.href = res.data.presigned_url;
5506
5498
  document.body.appendChild(link);
5507
5499
  link.click();