@everymatrix/player-change-password 0.0.166 → 0.0.170
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-change-password",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.170",
|
|
4
4
|
"main": "dist/player-change-password.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "3836860c7d1128dcea8bc1638c7912ee0f50ce6b"
|
|
40
40
|
}
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
let userConfirmPassword:string = '';
|
|
30
30
|
let passwordChanged:boolean = false;
|
|
31
31
|
|
|
32
|
+
let errorPasswordChanged:string = '';
|
|
33
|
+
let showErrorPasswordChanged:boolean = false;
|
|
34
|
+
|
|
32
35
|
const togglePassword = (field) => {
|
|
33
36
|
switch(field) {
|
|
34
37
|
case 'userCurrentPassword':
|
|
@@ -112,6 +115,11 @@
|
|
|
112
115
|
passwordChanged = true;
|
|
113
116
|
break;
|
|
114
117
|
|
|
118
|
+
case 'ShowPasswordChangedError':
|
|
119
|
+
showErrorPasswordChanged = e.data.showErrorPasswordChanged;
|
|
120
|
+
errorPasswordChanged = e.data.errorPasswordChanged;
|
|
121
|
+
break;
|
|
122
|
+
|
|
115
123
|
default:
|
|
116
124
|
// do nothing
|
|
117
125
|
break;
|
|
@@ -187,6 +195,11 @@
|
|
|
187
195
|
{/if}
|
|
188
196
|
</div>
|
|
189
197
|
</section>
|
|
198
|
+
{#if showErrorPasswordChanged}
|
|
199
|
+
<div>
|
|
200
|
+
<p class="PasswordChangedError">{errorPasswordChanged}</p>
|
|
201
|
+
</div>
|
|
202
|
+
{/if}
|
|
190
203
|
<section class="PlayerChangePasswordButtonsArea">
|
|
191
204
|
<div class="PlayerChangePasswordSaveButton {activateSubmit ? '' : 'ButtonInactive'}"
|
|
192
205
|
disabled={!activateSubmit}
|
|
@@ -260,7 +273,7 @@
|
|
|
260
273
|
.PlayerChangePasswordContent {
|
|
261
274
|
display: grid;
|
|
262
275
|
grid-column-gap: ttp(3.125);
|
|
263
|
-
grid-row-gap:
|
|
276
|
+
grid-row-gap: 20px;
|
|
264
277
|
grid-template-rows: auto;
|
|
265
278
|
grid-template-columns: 1fr;
|
|
266
279
|
padding-bottom: ttp(1.875);
|
|
@@ -394,6 +407,12 @@
|
|
|
394
407
|
.InvalidInputNew {
|
|
395
408
|
bottom: - ttp(1.5);
|
|
396
409
|
}
|
|
410
|
+
.PasswordChangedError {
|
|
411
|
+
color: #FD2839;
|
|
412
|
+
font-size: ttp(1);
|
|
413
|
+
line-height: ttp(1.2);
|
|
414
|
+
margin-top: 0;
|
|
415
|
+
}
|
|
397
416
|
.ChangedPasswordSuccessfully {
|
|
398
417
|
color: #fff;
|
|
399
418
|
position: relative;
|
|
@@ -516,7 +535,7 @@
|
|
|
516
535
|
display: inline-flex;
|
|
517
536
|
align-items: center;
|
|
518
537
|
column-gap: ttp(0.625);
|
|
519
|
-
margin-bottom:
|
|
538
|
+
margin-bottom: 10px;
|
|
520
539
|
}
|
|
521
540
|
.PlayerChangePasswordWrapperTablet {
|
|
522
541
|
padding: ttp(2.5) 25% 100% 25%;
|