ywana-core8 0.1.41 → 0.1.43
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.cjs +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +12 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +12 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/login/actions.js +4 -3
- package/src/widgets/login/dictionary.js +10 -0
package/package.json
CHANGED
@@ -99,8 +99,9 @@ export const ChangeUserPasswordAction = (props) => {
|
|
99
99
|
})
|
100
100
|
site.closeDialog()
|
101
101
|
} catch (error) {
|
102
|
-
|
103
|
-
const
|
102
|
+
console.log("ChangeUserPasswordAction error", error)
|
103
|
+
const key = error.message ? error.message.toUpperCase() : ""
|
104
|
+
const message = errorMessages[key]?.description || error.message || "Unknown error"
|
104
105
|
site.notify({
|
105
106
|
title: "Error",
|
106
107
|
body: message,
|
@@ -119,7 +120,7 @@ export const ChangeUserPasswordAction = (props) => {
|
|
119
120
|
return icon ? (
|
120
121
|
<Icon icon="key" clickable action={execute} size="small" />
|
121
122
|
) : (
|
122
|
-
<Button label={label} action={execute}
|
123
|
+
<Button label={label} action={execute} className="" />
|
123
124
|
)
|
124
125
|
}
|
125
126
|
|
@@ -20,6 +20,16 @@ export const LOGIN_DICTIONARY = {
|
|
20
20
|
fr: 'Confirmer le nouveau mot de passe'
|
21
21
|
},
|
22
22
|
|
23
|
+
'Change Password': {
|
24
|
+
en: 'Change Password',
|
25
|
+
es: 'Cambiar Contraseña',
|
26
|
+
de: 'Passwort ändern',
|
27
|
+
pt: 'Alterar Senha',
|
28
|
+
ca: 'Canviar Contrasenya',
|
29
|
+
it: 'Cambia Password',
|
30
|
+
fr: 'Changer le mot de passe'
|
31
|
+
},
|
32
|
+
|
23
33
|
'Forgot Password': {
|
24
34
|
en: 'Forgot Password',
|
25
35
|
es: 'Olvidé mi contraseña',
|