@nocios/crudify-ui 3.0.54 → 3.0.58
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 +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2844,6 +2844,7 @@ var CrudifyLoginInternal = ({
|
|
|
2844
2844
|
const { t } = useTranslation();
|
|
2845
2845
|
const { state, setScreen } = useLoginState();
|
|
2846
2846
|
const { config } = useSessionContext();
|
|
2847
|
+
const { showNotification } = useGlobalNotification();
|
|
2847
2848
|
const handleScreenChange = (screen2, params) => {
|
|
2848
2849
|
let finalParams = params;
|
|
2849
2850
|
if (screen2 === "login") {
|
|
@@ -2873,6 +2874,8 @@ var CrudifyLoginInternal = ({
|
|
|
2873
2874
|
...commonProps,
|
|
2874
2875
|
searchParams: state.searchParams,
|
|
2875
2876
|
onResetSuccess: () => {
|
|
2877
|
+
const message = t("resetPassword.successMessage");
|
|
2878
|
+
showNotification(message, "success");
|
|
2876
2879
|
handleScreenChange("login");
|
|
2877
2880
|
}
|
|
2878
2881
|
}
|
|
@@ -4775,7 +4778,10 @@ var useCrudifyWithNotifications = (options = {}) => {
|
|
|
4775
4778
|
moduleKey = actionConfig.moduleKey;
|
|
4776
4779
|
}
|
|
4777
4780
|
}
|
|
4778
|
-
if (
|
|
4781
|
+
if (operation === "validateAndResetPassword") {
|
|
4782
|
+
const message = getSafeTranslation("resetPassword.successMessage", "Contrase\xF1a restablecida exitosamente");
|
|
4783
|
+
showNotification(message, "success", { autoHideDuration });
|
|
4784
|
+
} else if (shouldShowSuccessNotification(operation, moduleKey)) {
|
|
4779
4785
|
const message = getSuccessMessage(operation, moduleKey, actionConfig);
|
|
4780
4786
|
showNotification(message, "success", { autoHideDuration });
|
|
4781
4787
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2771,6 +2771,7 @@ var CrudifyLoginInternal = ({
|
|
|
2771
2771
|
const { t } = useTranslation();
|
|
2772
2772
|
const { state, setScreen } = useLoginState();
|
|
2773
2773
|
const { config } = useSessionContext();
|
|
2774
|
+
const { showNotification } = useGlobalNotification();
|
|
2774
2775
|
const handleScreenChange = (screen2, params) => {
|
|
2775
2776
|
let finalParams = params;
|
|
2776
2777
|
if (screen2 === "login") {
|
|
@@ -2800,6 +2801,8 @@ var CrudifyLoginInternal = ({
|
|
|
2800
2801
|
...commonProps,
|
|
2801
2802
|
searchParams: state.searchParams,
|
|
2802
2803
|
onResetSuccess: () => {
|
|
2804
|
+
const message = t("resetPassword.successMessage");
|
|
2805
|
+
showNotification(message, "success");
|
|
2803
2806
|
handleScreenChange("login");
|
|
2804
2807
|
}
|
|
2805
2808
|
}
|
|
@@ -4761,7 +4764,10 @@ var useCrudifyWithNotifications = (options = {}) => {
|
|
|
4761
4764
|
moduleKey = actionConfig.moduleKey;
|
|
4762
4765
|
}
|
|
4763
4766
|
}
|
|
4764
|
-
if (
|
|
4767
|
+
if (operation === "validateAndResetPassword") {
|
|
4768
|
+
const message = getSafeTranslation("resetPassword.successMessage", "Contrase\xF1a restablecida exitosamente");
|
|
4769
|
+
showNotification(message, "success", { autoHideDuration });
|
|
4770
|
+
} else if (shouldShowSuccessNotification(operation, moduleKey)) {
|
|
4765
4771
|
const message = getSuccessMessage(operation, moduleKey, actionConfig);
|
|
4766
4772
|
showNotification(message, "success", { autoHideDuration });
|
|
4767
4773
|
}
|