@itilite/iui-user-management 0.4.2 → 0.4.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.
@@ -12,6 +12,7 @@ import { composeWithDevTools } from 'redux-devtools-extension';
12
12
  import { useHistory } from 'react-router-dom';
13
13
  import { withStyles } from '@material-ui/core/styles';
14
14
  import Switch from '@material-ui/core/Switch';
15
+ import MoreHorizIcon from '@material-ui/icons/MoreHoriz';
15
16
 
16
17
  function _extends() {
17
18
  _extends = Object.assign ? Object.assign.bind() : function (target) {
@@ -1504,8 +1505,9 @@ var makePrimaryAdmin = function makePrimaryAdmin(payload) {
1504
1505
  return function (dispatch) {
1505
1506
  return new Promise(function (resolve, reject) {
1506
1507
  api$1.put(userAddEditUrl.primaryAdmin(payload.userId)).then(function (res) {
1507
- if (res.data.status) {
1508
- resolve(res.data.result);
1508
+ if (res.message) {
1509
+ IUIToastMessageService.sNotify(res.message);
1510
+ resolve();
1509
1511
  } else {
1510
1512
  reject(res);
1511
1513
  }
@@ -1544,7 +1546,7 @@ var resendInviteForUser = function resendInviteForUser(data) {
1544
1546
  api$1.post(userAddEditUrl.resendInviteForUserApi(), {
1545
1547
  user_ids: data
1546
1548
  }).then(function (res) {
1547
- IUIToastMessageService.sNotify('Reset password link sent successfully');
1549
+ IUIToastMessageService.sNotify('Invitation sent successfully');
1548
1550
  resolve();
1549
1551
  })["catch"](function (err) {
1550
1552
  if (!err.response.data.status) {
@@ -8686,7 +8688,21 @@ var StickyHeadTable = function StickyHeadTable(props) {
8686
8688
  return /*#__PURE__*/React.createElement(IUIBox, {
8687
8689
  component: "div",
8688
8690
  width: 100
8689
- }, row && row.has_visited === 0 ? 'Invited' : '');
8691
+ }, row && row.has_visited === 0 ? /*#__PURE__*/React.createElement("div", {
8692
+ title: "This user hasn't logged on to the platform yet",
8693
+ style: {
8694
+ width: '55px',
8695
+ height: '24px',
8696
+ background: '#F9FAFB',
8697
+ borderRadius: '8px',
8698
+ display: 'flex',
8699
+ justifyContent: 'center',
8700
+ alignItems: 'center',
8701
+ padding: '4px 8px',
8702
+ fontSize: '12px',
8703
+ fontWeight: '400'
8704
+ }
8705
+ }, "Invited") : null);
8690
8706
  }
8691
8707
  }, {
8692
8708
  id: 'emp_info__department__name',
@@ -8801,11 +8817,23 @@ var StickyHeadTable = function StickyHeadTable(props) {
8801
8817
  });
8802
8818
  }
8803
8819
 
8804
- return /*#__PURE__*/React.createElement(IUIDropdownButton, {
8805
- buttonText: "Options",
8806
- type: "outlined",
8807
- menuListInfo: options
8808
- });
8820
+ return /*#__PURE__*/React.createElement("div", {
8821
+ style: {
8822
+ marginLeft: '50px'
8823
+ }
8824
+ }, /*#__PURE__*/React.createElement(IUIDropdownButton, {
8825
+ buttonText: /*#__PURE__*/React.createElement(MoreHorizIcon, {
8826
+ fontSize: "medium",
8827
+ color: "#6B7280"
8828
+ }),
8829
+ disableRipple: false,
8830
+ menuListInfo: options,
8831
+ menuListClass: "menuClass",
8832
+ endIcon: null,
8833
+ outlinedBtn: false,
8834
+ className: "threedotMenuBtn",
8835
+ placement: "bottom-end"
8836
+ }));
8809
8837
  },
8810
8838
  style: {
8811
8839
  paddingLeft: '40px'
@@ -9116,7 +9144,7 @@ var UserList = function UserList(_ref) {
9116
9144
  label: 'Bulk action history',
9117
9145
  handler: handleBulkActionHistoryClick
9118
9146
  }, {
9119
- label: 'Send invite',
9147
+ label: 'Resend invite',
9120
9148
  handler: onResendInviteHandler
9121
9149
  }];
9122
9150
  useEffect(function () {