@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.
@@ -2990,7 +2990,7 @@ var workInfo = [{
2990
2990
  value: 'employee_level',
2991
2991
  component: /*#__PURE__*/React.createElement(IUITypography, {
2992
2992
  className: "iui__font--color-link iui__font--weight-500"
2993
- }, "+ Add Employee Level"),
2993
+ }, "+ Add employee level"),
2994
2994
  callback: null
2995
2995
  }
2996
2996
  }, {
@@ -3035,7 +3035,7 @@ var workInfo = [{
3035
3035
  value: 'entity',
3036
3036
  component: /*#__PURE__*/React.createElement(IUITypography, {
3037
3037
  className: "iui__font--color-link iui__font--weight-500"
3038
- }, "+ Add Entity"),
3038
+ }, "+ Add entity"),
3039
3039
  callback: null
3040
3040
  }
3041
3041
  }, {
@@ -3057,7 +3057,7 @@ var workInfo = [{
3057
3057
  value: 'business_unit',
3058
3058
  component: /*#__PURE__*/React.createElement(IUITypography, {
3059
3059
  className: "iui__font--color-link iui__font--weight-500"
3060
- }, "+ Add Business Unit"),
3060
+ }, "+ Add business unit"),
3061
3061
  callback: null
3062
3062
  }
3063
3063
  }, {
@@ -3079,7 +3079,7 @@ var workInfo = [{
3079
3079
  value: 'department',
3080
3080
  component: /*#__PURE__*/React.createElement(IUITypography, {
3081
3081
  className: "iui__font--color-link iui__font--weight-500"
3082
- }, "+ Add Department"),
3082
+ }, "+ Add department"),
3083
3083
  callback: null
3084
3084
  }
3085
3085
  }, {
@@ -5176,16 +5176,11 @@ var UserAddEdit = function UserAddEdit(props) {
5176
5176
  } else if (id === 'department') {
5177
5177
  title = 'Department';
5178
5178
  } else if (id === 'business_unit') {
5179
- title = 'Business Unit';
5179
+ title = 'Business unit';
5180
5180
  } else if (id === 'employee_level') {
5181
- title = 'Employee Level';
5181
+ title = 'Employee level';
5182
5182
  }
5183
5183
 
5184
- console.log(_extends({}, addModalData, {
5185
- isOpen: true,
5186
- title: title,
5187
- id: id
5188
- }));
5189
5184
  setAddModalData(_extends({}, addModalData, {
5190
5185
  isOpen: true,
5191
5186
  title: title,
@@ -5207,7 +5202,6 @@ var UserAddEdit = function UserAddEdit(props) {
5207
5202
  })).then(function (res) {
5208
5203
  var _extends2;
5209
5204
 
5210
- console.log(res, "success add " + addModalData.title + " response");
5211
5205
  setAddModalData(_extends({}, addModalData, {
5212
5206
  isOpen: false
5213
5207
  }));
@@ -5217,11 +5211,9 @@ var UserAddEdit = function UserAddEdit(props) {
5217
5211
  value: res.data.value,
5218
5212
  label: res.data.label
5219
5213
  }, _extends2)));
5220
- console.log('Set new value', res.data.label);
5221
5214
  clearCacheForAsyncDropdown(function (prevState) {
5222
5215
  var _extends3;
5223
5216
 
5224
- console.log('ClearCache function called');
5225
5217
  return _extends({}, prevState, (_extends3 = {}, _extends3[tempKey] = prevState[tempKey] + 1, _extends3));
5226
5218
  });
5227
5219
  dispatch(stopLoader());
@@ -5484,7 +5476,7 @@ var UserAddEdit = function UserAddEdit(props) {
5484
5476
  if ((_name === 'passport_photo' || _name === 'travel_docs') && _obj.openFile === true) {
5485
5477
  if (_obj.file.isExistingFile) {
5486
5478
  var link = document.createElement('a');
5487
- link.setAttribute('download', _obj.file.name);
5479
+ link.setAttribute('target', '_blank');
5488
5480
  link.href = _obj.file.presigned_url;
5489
5481
  document.body.appendChild(link);
5490
5482
  link.click();
@@ -5498,7 +5490,7 @@ var UserAddEdit = function UserAddEdit(props) {
5498
5490
  })).then(function (res) {
5499
5491
  dispatch(stopLoader());
5500
5492
  var link = document.createElement('a');
5501
- link.setAttribute('download', _obj.file.returned_file_name);
5493
+ link.setAttribute('target', '_blank');
5502
5494
  link.href = res.data.presigned_url;
5503
5495
  document.body.appendChild(link);
5504
5496
  link.click();