@itilite/iui-user-management 0.4.2 → 0.4.3

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
@@ -1507,8 +1507,9 @@ var makePrimaryAdmin = function makePrimaryAdmin(payload) {
1507
1507
  return function (dispatch) {
1508
1508
  return new Promise(function (resolve, reject) {
1509
1509
  api$1.put(userAddEditUrl.primaryAdmin(payload.userId)).then(function (res) {
1510
- if (res.data.status) {
1511
- resolve(res.data.result);
1510
+ if (res.message) {
1511
+ IUIToastMessageService.sNotify(res.message);
1512
+ resolve();
1512
1513
  } else {
1513
1514
  reject(res);
1514
1515
  }
@@ -1547,7 +1548,7 @@ var resendInviteForUser = function resendInviteForUser(data) {
1547
1548
  api$1.post(userAddEditUrl.resendInviteForUserApi(), {
1548
1549
  user_ids: data
1549
1550
  }).then(function (res) {
1550
- IUIToastMessageService.sNotify('Reset password link sent successfully');
1551
+ IUIToastMessageService.sNotify('Invitation sent successfully');
1551
1552
  resolve();
1552
1553
  })["catch"](function (err) {
1553
1554
  if (!err.response.data.status) {
@@ -8689,7 +8690,21 @@ var StickyHeadTable = function StickyHeadTable(props) {
8689
8690
  return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
8690
8691
  component: "div",
8691
8692
  width: 100
8692
- }, row && row.has_visited === 0 ? 'Invited' : '');
8693
+ }, row && row.has_visited === 0 ? /*#__PURE__*/React__default.createElement("div", {
8694
+ title: "This user hasn't logged on to the platform yet",
8695
+ style: {
8696
+ width: '55px',
8697
+ height: '24px',
8698
+ background: '#F9FAFB',
8699
+ borderRadius: '8px',
8700
+ display: 'flex',
8701
+ justifyContent: 'center',
8702
+ alignItems: 'center',
8703
+ padding: '4px 8px',
8704
+ fontSize: '12px',
8705
+ fontWeight: '400'
8706
+ }
8707
+ }, "Invited") : null);
8693
8708
  }
8694
8709
  }, {
8695
8710
  id: 'emp_info__department__name',
@@ -9119,7 +9134,7 @@ var UserList = function UserList(_ref) {
9119
9134
  label: 'Bulk action history',
9120
9135
  handler: handleBulkActionHistoryClick
9121
9136
  }, {
9122
- label: 'Send invite',
9137
+ label: 'Resend invite',
9123
9138
  handler: onResendInviteHandler
9124
9139
  }];
9125
9140
  React.useEffect(function () {