@itilite/iui-user-management 0.4.5 → 0.4.6

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.
@@ -1527,7 +1527,7 @@ var resetPasswordForUser = function resetPasswordForUser(data) {
1527
1527
  api$1.post("" + userAddEditUrl.resetPasswordForUserApi(), {
1528
1528
  email: data.email
1529
1529
  }).then(function (res) {
1530
- IUIToastMessageService.sNotify(' Reset password link sent successfully');
1530
+ IUIToastMessageService.sNotify(res.data.message.toString());
1531
1531
  resolve();
1532
1532
  })["catch"](function (err) {
1533
1533
  if (!err.response.data.status) {
@@ -1547,7 +1547,7 @@ var resendInviteForUser = function resendInviteForUser(data) {
1547
1547
  api$1.post(userAddEditUrl.resendInviteForUserApi(), {
1548
1548
  user_ids: data
1549
1549
  }).then(function (res) {
1550
- IUIToastMessageService.sNotify('Invitation sent successfully');
1550
+ IUIToastMessageService.sNotify(res.data.message.toString());
1551
1551
  resolve();
1552
1552
  })["catch"](function (err) {
1553
1553
  if (!err.response.data.status) {
@@ -8683,18 +8683,18 @@ var StickyHeadTable = function StickyHeadTable(props) {
8683
8683
  }, {
8684
8684
  id: 'first_name',
8685
8685
  label: '',
8686
- minWidth: 100,
8686
+ minWidth: 60,
8687
8687
  sortable: true,
8688
8688
  cell: function cell(row) {
8689
8689
  return /*#__PURE__*/React.createElement(IUIBox, {
8690
8690
  component: "div",
8691
- width: 100
8691
+ width: 60
8692
8692
  }, row && row.has_visited === 0 ? /*#__PURE__*/React.createElement("div", {
8693
8693
  title: "This user hasn't logged on to the platform yet",
8694
8694
  style: {
8695
8695
  width: '55px',
8696
8696
  height: '24px',
8697
- background: 'lightgrey',
8697
+ background: '#F9FAFB',
8698
8698
  borderRadius: '8px',
8699
8699
  display: 'flex',
8700
8700
  justifyContent: 'center',
@@ -8757,7 +8757,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
8757
8757
  }, {
8758
8758
  id: 'status',
8759
8759
  label: 'Status',
8760
- minWidth: 190,
8760
+ minWidth: 170,
8761
8761
  cell: function cell(row) {
8762
8762
  return /*#__PURE__*/React.createElement(IUIFormGroup, null, /*#__PURE__*/React.createElement(IUITypography, {
8763
8763
  component: "div",
@@ -8783,7 +8783,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
8783
8783
  }, {
8784
8784
  id: 'actions',
8785
8785
  label: 'Actions',
8786
- minWidth: 170,
8786
+ minWidth: 100,
8787
8787
  align: 'left',
8788
8788
  cell: function cell(row) {
8789
8789
  var options = [{
@@ -9109,8 +9109,14 @@ var UserList = function UserList(_ref) {
9109
9109
 
9110
9110
  if (userIds && !isNaN(userIds)) {
9111
9111
  userIdArr = [userIds];
9112
- } else if (selected[page] && selected[page].length) {
9113
- userIdArr = selected[page];
9112
+ } else if (Object.keys(selected).length) {
9113
+ Object.values(selected).map(function (val, i) {
9114
+ if (val.length) {
9115
+ val.map(function (idx, i) {
9116
+ userIdArr.push(idx);
9117
+ });
9118
+ }
9119
+ });
9114
9120
  }
9115
9121
 
9116
9122
  setUserIds('');