@stokr/components-library 2.3.41-beta.14 → 2.3.41-beta.15
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.
|
@@ -769,16 +769,16 @@ var HeaderHoClass = /*#__PURE__*/function (_Component) {
|
|
|
769
769
|
},
|
|
770
770
|
onFormSend: /*#__PURE__*/function () {
|
|
771
771
|
var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_ref12) {
|
|
772
|
-
var password;
|
|
772
|
+
var password, oobCode;
|
|
773
773
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
774
774
|
while (1) switch (_context8.prev = _context8.next) {
|
|
775
775
|
case 0:
|
|
776
|
-
password = _ref12.password;
|
|
776
|
+
password = _ref12.password, oobCode = _ref12.oobCode;
|
|
777
777
|
_this2.clearPopupError();
|
|
778
778
|
_this2.setIsActionLoading('resetPassword');
|
|
779
779
|
_context8.prev = 3;
|
|
780
780
|
_context8.next = 6;
|
|
781
|
-
return handleResetPassword(password);
|
|
781
|
+
return handleResetPassword(password, oobCode);
|
|
782
782
|
case 6:
|
|
783
783
|
_this2.switchOpenModal('resetPassword', 'confirmReset');
|
|
784
784
|
_this2.setIsActionLoading(undefined);
|
|
@@ -869,54 +869,6 @@ var HeaderHoClass = /*#__PURE__*/function (_Component) {
|
|
|
869
869
|
return _ref14.apply(this, arguments);
|
|
870
870
|
};
|
|
871
871
|
}()
|
|
872
|
-
}), /*#__PURE__*/_react.default.createElement(_ResetPasswordModal.default, {
|
|
873
|
-
isActionLoading: isActionLoading,
|
|
874
|
-
popupError: this.state.popupError,
|
|
875
|
-
isModalOpen: isModalOpen.resetPassword,
|
|
876
|
-
onModalClose: function onModalClose() {
|
|
877
|
-
_this2.setOpenModalStatus('resetPassword', false);
|
|
878
|
-
_this2.clearPopupError();
|
|
879
|
-
_this2.setIsActionLoading(undefined);
|
|
880
|
-
},
|
|
881
|
-
onModalSwitch: function onModalSwitch() {
|
|
882
|
-
window.history.pushState({}, null, '/login');
|
|
883
|
-
_this2.switchOpenModal('resetPassword', 'login');
|
|
884
|
-
_this2.clearPopupError();
|
|
885
|
-
_this2.setIsActionLoading(undefined);
|
|
886
|
-
},
|
|
887
|
-
onFormSend: /*#__PURE__*/function () {
|
|
888
|
-
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(_ref15) {
|
|
889
|
-
var password, oobCode;
|
|
890
|
-
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
891
|
-
while (1) switch (_context10.prev = _context10.next) {
|
|
892
|
-
case 0:
|
|
893
|
-
password = _ref15.password, oobCode = _ref15.oobCode;
|
|
894
|
-
_this2.clearPopupError();
|
|
895
|
-
_this2.setIsActionLoading('resetPassword');
|
|
896
|
-
_context10.prev = 3;
|
|
897
|
-
_context10.next = 6;
|
|
898
|
-
return handleResetPassword(password, oobCode);
|
|
899
|
-
case 6:
|
|
900
|
-
_this2.switchOpenModal('resetPassword', 'confirmReset');
|
|
901
|
-
_this2.setIsActionLoading(undefined);
|
|
902
|
-
_context10.next = 15;
|
|
903
|
-
break;
|
|
904
|
-
case 10:
|
|
905
|
-
_context10.prev = 10;
|
|
906
|
-
_context10.t0 = _context10["catch"](3);
|
|
907
|
-
console.log(_context10.t0);
|
|
908
|
-
_this2.setPopupError('resetPassword', (_context10.t0 === null || _context10.t0 === void 0 ? void 0 : _context10.t0.message) || 'Something went wrong.');
|
|
909
|
-
_this2.setIsActionLoading(undefined);
|
|
910
|
-
case 15:
|
|
911
|
-
case "end":
|
|
912
|
-
return _context10.stop();
|
|
913
|
-
}
|
|
914
|
-
}, _callee10, null, [[3, 10]]);
|
|
915
|
-
}));
|
|
916
|
-
return function (_x7) {
|
|
917
|
-
return _ref16.apply(this, arguments);
|
|
918
|
-
};
|
|
919
|
-
}()
|
|
920
872
|
}), /*#__PURE__*/_react.default.createElement(_ResendConfirmationCodeModal.default, {
|
|
921
873
|
isActionLoading: isActionLoading,
|
|
922
874
|
popupError: this.state.popupError,
|