ywana-core8 0.1.32 → 0.1.34

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.
@@ -2568,8 +2568,10 @@ function _catch$7(body, recover) {
2568
2568
  var ForgetUserPasswordAction = function ForgetUserPasswordAction(props) {
2569
2569
  var execute = function execute() {
2570
2570
  try {
2571
- var _temp = _catch$7(function () {
2572
- return Promise.resolve(onOK(user.email)).then(function () {
2571
+ return Promise.resolve(_catch$7(function () {
2572
+ var email = user.email;
2573
+ if (!email) throw new Error("Email not found");
2574
+ return Promise.resolve(onOK(email)).then(function () {
2573
2575
  if (onSuccess) onSuccess();
2574
2576
  site.notify({
2575
2577
  title: /*#__PURE__*/React.createElement(Text$1, null, "Forgot Password"),
@@ -2584,8 +2586,7 @@ var ForgetUserPasswordAction = function ForgetUserPasswordAction(props) {
2584
2586
  type: "danger",
2585
2587
  icon: "error"
2586
2588
  });
2587
- });
2588
- return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
2589
+ }));
2589
2590
  } catch (e) {
2590
2591
  return Promise.reject(e);
2591
2592
  }
@@ -2594,9 +2595,10 @@ var ForgetUserPasswordAction = function ForgetUserPasswordAction(props) {
2594
2595
  var user = props.user,
2595
2596
  _props$icon = props.icon,
2596
2597
  icon = _props$icon === void 0 ? false : _props$icon,
2598
+ _props$label = props.label,
2599
+ label = _props$label === void 0 ? "Reset Password" : _props$label,
2597
2600
  onOK = props.onOK,
2598
2601
  onSuccess = props.onSuccess;
2599
- var label = /*#__PURE__*/React.createElement(Text$1, null, "Forgot Password");
2600
2602
  return icon ? /*#__PURE__*/React.createElement(Icon, {
2601
2603
  icon: "mail_lock",
2602
2604
  clickable: true,
@@ -2616,7 +2618,7 @@ var ForgetUserPasswordAction = function ForgetUserPasswordAction(props) {
2616
2618
  var UnlockUserAction = function UnlockUserAction(props) {
2617
2619
  var execute = function execute() {
2618
2620
  try {
2619
- var _temp2 = _catch$7(function () {
2621
+ var _temp = _catch$7(function () {
2620
2622
  return Promise.resolve(onOK(user)).then(function () {
2621
2623
  if (onSuccess) onSuccess();
2622
2624
  site.notify({
@@ -2633,7 +2635,7 @@ var UnlockUserAction = function UnlockUserAction(props) {
2633
2635
  icon: "error"
2634
2636
  });
2635
2637
  });
2636
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
2638
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
2637
2639
  } catch (e) {
2638
2640
  return Promise.reject(e);
2639
2641
  }
@@ -2683,7 +2685,7 @@ var ChangeUserPasswordAction = function ChangeUserPasswordAction(props) {
2683
2685
  function execute() {
2684
2686
  var onOK = function onOK(form) {
2685
2687
  try {
2686
- var _temp3 = _catch$7(function () {
2688
+ var _temp2 = _catch$7(function () {
2687
2689
  return Promise.resolve(props.onOK(user, form.oldPassword, form.password1)).then(function () {
2688
2690
  site.notify({
2689
2691
  title: /*#__PURE__*/React.createElement(Text$1, null, "Change Password"),
@@ -2708,7 +2710,7 @@ var ChangeUserPasswordAction = function ChangeUserPasswordAction(props) {
2708
2710
  error: message
2709
2711
  }));
2710
2712
  });
2711
- return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
2713
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
2712
2714
  } catch (e) {
2713
2715
  return Promise.reject(e);
2714
2716
  }
@@ -2743,6 +2745,15 @@ var LOGIN_DICTIONARY = (_LOGIN_DICTIONARY = {
2743
2745
  it: 'Password dimenticata',
2744
2746
  fr: 'Mot de passe oublié'
2745
2747
  },
2748
+ 'Reset Password': {
2749
+ en: 'Reset Password',
2750
+ es: 'Restablecer contraseña',
2751
+ de: 'Passwort zurücksetzen',
2752
+ pt: 'Redefinir senha',
2753
+ ca: 'Restablir contrasenya',
2754
+ it: 'Reimposta password',
2755
+ fr: 'Réinitialiser le mot de passe'
2756
+ },
2746
2757
  'Check your email to reset your password': {
2747
2758
  en: 'Check your email to reset your password',
2748
2759
  es: 'Revise su correo electrónico para restablecer su contraseña',