@nocios/crudify-ui 3.0.56 → 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 +3 -0
- package/dist/index.mjs +3 -0
- 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
|
}
|
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
|
}
|