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