@itilite/iui-user-management 0.4.14 → 0.4.16
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 +11 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7742,18 +7742,18 @@ var StickyHeadTable = function StickyHeadTable(props) {
|
|
|
7742
7742
|
return onEditHandler(row.id);
|
|
7743
7743
|
}
|
|
7744
7744
|
}];
|
|
7745
|
-
if (row && row.has_visited) {
|
|
7745
|
+
if (row && row.has_visited && row.is_active) {
|
|
7746
7746
|
options.push({
|
|
7747
|
-
label: '
|
|
7747
|
+
label: 'Reset password',
|
|
7748
7748
|
handler: function handler() {
|
|
7749
|
-
return
|
|
7749
|
+
return onResetPasswordHandler(row.email);
|
|
7750
7750
|
}
|
|
7751
7751
|
});
|
|
7752
|
-
} else {
|
|
7752
|
+
} else if (row && row.is_active) {
|
|
7753
7753
|
options.push({
|
|
7754
|
-
label: '
|
|
7754
|
+
label: 'Resend invite',
|
|
7755
7755
|
handler: function handler() {
|
|
7756
|
-
return
|
|
7756
|
+
return toggleInviteModal(row.id);
|
|
7757
7757
|
}
|
|
7758
7758
|
});
|
|
7759
7759
|
}
|
|
@@ -8006,6 +8006,10 @@ var UserList = function UserList(_ref) {
|
|
|
8006
8006
|
}));
|
|
8007
8007
|
};
|
|
8008
8008
|
var toggleInviteModal = function toggleInviteModal(ids) {
|
|
8009
|
+
if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
|
|
8010
|
+
IUIToastMessageService$7.warningNotify('Select at least one user to invite.');
|
|
8011
|
+
return false;
|
|
8012
|
+
}
|
|
8009
8013
|
setUserIds(ids);
|
|
8010
8014
|
setToggleInviteModal(!showInviteModal);
|
|
8011
8015
|
};
|
|
@@ -8239,7 +8243,7 @@ var UserList = function UserList(_ref) {
|
|
|
8239
8243
|
}, 'Are you sure you want to deactivate ' + Object.values(selected).flat().length.toString() + (Object.values(selected).flat().length === 1 ? ' user ?' : ' users ?')), /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
|
|
8240
8244
|
className: styles$5.description
|
|
8241
8245
|
}, "The", ' ', Object.values(selected).flat().length === 1 ? ' user ' : ' users ', "won\u2019t be able to access itilite platform"))), /*#__PURE__*/React__default.createElement(iuistyles.IUIModal, {
|
|
8242
|
-
isOpen: showInviteModal,
|
|
8246
|
+
isOpen: Object.values(selected).flat().length > 0 && showInviteModal,
|
|
8243
8247
|
closeHandler: toggleInviteModal,
|
|
8244
8248
|
cancelLabel: "Cancel",
|
|
8245
8249
|
headerText: "Resend Invites?",
|