@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.
package/dist/index.js CHANGED
@@ -15,6 +15,7 @@ var reduxDevtoolsExtension = require('redux-devtools-extension');
15
15
  var reactRouterDom = require('react-router-dom');
16
16
  var styles$8 = require('@material-ui/core/styles');
17
17
  var Switch = _interopDefault(require('@material-ui/core/Switch'));
18
+ var MoreHorizIcon = _interopDefault(require('@material-ui/icons/MoreHoriz'));
18
19
 
19
20
  function _extends() {
20
21
  _extends = Object.assign ? Object.assign.bind() : function (target) {
@@ -1507,8 +1508,9 @@ var makePrimaryAdmin = function makePrimaryAdmin(payload) {
1507
1508
  return function (dispatch) {
1508
1509
  return new Promise(function (resolve, reject) {
1509
1510
  api$1.put(userAddEditUrl.primaryAdmin(payload.userId)).then(function (res) {
1510
- if (res.data.status) {
1511
- resolve(res.data.result);
1511
+ if (res.message) {
1512
+ IUIToastMessageService.sNotify(res.message);
1513
+ resolve();
1512
1514
  } else {
1513
1515
  reject(res);
1514
1516
  }
@@ -1547,7 +1549,7 @@ var resendInviteForUser = function resendInviteForUser(data) {
1547
1549
  api$1.post(userAddEditUrl.resendInviteForUserApi(), {
1548
1550
  user_ids: data
1549
1551
  }).then(function (res) {
1550
- IUIToastMessageService.sNotify('Reset password link sent successfully');
1552
+ IUIToastMessageService.sNotify('Invitation sent successfully');
1551
1553
  resolve();
1552
1554
  })["catch"](function (err) {
1553
1555
  if (!err.response.data.status) {
@@ -8689,7 +8691,21 @@ var StickyHeadTable = function StickyHeadTable(props) {
8689
8691
  return /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
8690
8692
  component: "div",
8691
8693
  width: 100
8692
- }, row && row.has_visited === 0 ? 'Invited' : '');
8694
+ }, row && row.has_visited === 0 ? /*#__PURE__*/React__default.createElement("div", {
8695
+ title: "This user hasn't logged on to the platform yet",
8696
+ style: {
8697
+ width: '55px',
8698
+ height: '24px',
8699
+ background: '#F9FAFB',
8700
+ borderRadius: '8px',
8701
+ display: 'flex',
8702
+ justifyContent: 'center',
8703
+ alignItems: 'center',
8704
+ padding: '4px 8px',
8705
+ fontSize: '12px',
8706
+ fontWeight: '400'
8707
+ }
8708
+ }, "Invited") : null);
8693
8709
  }
8694
8710
  }, {
8695
8711
  id: 'emp_info__department__name',
@@ -8804,11 +8820,23 @@ var StickyHeadTable = function StickyHeadTable(props) {
8804
8820
  });
8805
8821
  }
8806
8822
 
8807
- return /*#__PURE__*/React__default.createElement(iuistyles.IUIDropdownButton, {
8808
- buttonText: "Options",
8809
- type: "outlined",
8810
- menuListInfo: options
8811
- });
8823
+ return /*#__PURE__*/React__default.createElement("div", {
8824
+ style: {
8825
+ marginLeft: '50px'
8826
+ }
8827
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIDropdownButton, {
8828
+ buttonText: /*#__PURE__*/React__default.createElement(MoreHorizIcon, {
8829
+ fontSize: "medium",
8830
+ color: "#6B7280"
8831
+ }),
8832
+ disableRipple: false,
8833
+ menuListInfo: options,
8834
+ menuListClass: "menuClass",
8835
+ endIcon: null,
8836
+ outlinedBtn: false,
8837
+ className: "threedotMenuBtn",
8838
+ placement: "bottom-end"
8839
+ }));
8812
8840
  },
8813
8841
  style: {
8814
8842
  paddingLeft: '40px'
@@ -9119,7 +9147,7 @@ var UserList = function UserList(_ref) {
9119
9147
  label: 'Bulk action history',
9120
9148
  handler: handleBulkActionHistoryClick
9121
9149
  }, {
9122
- label: 'Send invite',
9150
+ label: 'Resend invite',
9123
9151
  handler: onResendInviteHandler
9124
9152
  }];
9125
9153
  React.useEffect(function () {