@designcrowd/fe-shared-lib 1.0.8-ml-82-25 → 1.0.8-ml-82-27
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
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
<Button
|
|
6
6
|
variant="secondary"
|
|
7
7
|
size="small"
|
|
8
|
-
label="
|
|
8
|
+
:label="resendPasswordEmailLabel"
|
|
9
9
|
class="tw-hidden sm:tw-inline tw-absolute tw-right-2 md:tw-right-6 tw-top-1/2 tw-transform tw--translate-y-1/2"
|
|
10
10
|
@on-click="submitForgotPasswordForm"
|
|
11
11
|
/>
|
|
12
12
|
<Button
|
|
13
13
|
variant="secondary"
|
|
14
14
|
size="medium"
|
|
15
|
-
label="
|
|
15
|
+
:label="resendPasswordEmailLabel"
|
|
16
16
|
:full-width="true"
|
|
17
17
|
class="sm:tw-hidden tw-mt-2"
|
|
18
18
|
@on-click="submitForgotPasswordForm"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<SubmissionButton
|
|
54
54
|
variant="primary"
|
|
55
55
|
size="medium"
|
|
56
|
-
label="
|
|
56
|
+
:label="resetPasswordLabel"
|
|
57
57
|
label-size="larger"
|
|
58
58
|
:is-loading="isLoading"
|
|
59
59
|
:disabled="isLoading"
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
<p
|
|
65
65
|
class="tw-w-full tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-text-center tw-pt-6 tw-pb-8 tw-text-grayscale-600"
|
|
66
66
|
>
|
|
67
|
-
|
|
68
|
-
<button class="tw-text-info-500 tw-cursor-pointer" @click="goBackToLoginClick()">
|
|
67
|
+
{{ rememberedPasswordLabel }}
|
|
68
|
+
<button class="tw-text-info-500 tw-cursor-pointer" @click="goBackToLoginClick()">{{ goBackToLoginLabel }}</button>
|
|
69
69
|
</p>
|
|
70
70
|
</div>
|
|
71
71
|
</div>
|
|
@@ -124,12 +124,21 @@ export default {
|
|
|
124
124
|
required: false,
|
|
125
125
|
default: undefined,
|
|
126
126
|
},
|
|
127
|
+
forgotPasswordContent: {
|
|
128
|
+
type: Object,
|
|
129
|
+
required: false,
|
|
130
|
+
default: () => {},
|
|
131
|
+
},
|
|
127
132
|
},
|
|
128
133
|
data() {
|
|
129
134
|
return {
|
|
130
135
|
isLoading: false,
|
|
131
136
|
aEmail: this.email,
|
|
132
137
|
emailError: undefined,
|
|
138
|
+
resendPasswordEmailLabel: this.forgotPasswordContent.resendPasswordEmailLabel ?? 'RESEND EMAIL',
|
|
139
|
+
resetPasswordLabel: this.forgotPasswordContent.resetPasswordLabel ?? 'RESET PASSWORD',
|
|
140
|
+
rememberedPasswordLabel: this.forgotPasswordContent.rememberedPasswordLabel ?? 'It\'s ok, I remembered my password',
|
|
141
|
+
goBackToLoginLabel: this.forgotPasswordContent.goBackToLoginLabel ?? 'Go back to login',
|
|
133
142
|
};
|
|
134
143
|
},
|
|
135
144
|
computed: {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
:form-background-class="formBackgroundClass"
|
|
11
11
|
:anti-forgery-token="antiForgeryToken"
|
|
12
12
|
:hello-bar="helloBar"
|
|
13
|
+
:forgot-password-content="forgotPasswordContent"
|
|
13
14
|
/>
|
|
14
15
|
</template>
|
|
15
16
|
</AuthModal>
|
|
@@ -57,6 +58,11 @@ export default {
|
|
|
57
58
|
required: false,
|
|
58
59
|
default: undefined,
|
|
59
60
|
},
|
|
61
|
+
forgotPasswordContent: {
|
|
62
|
+
type: Object,
|
|
63
|
+
required: false,
|
|
64
|
+
default: () => {},
|
|
65
|
+
},
|
|
60
66
|
},
|
|
61
67
|
};
|
|
62
68
|
</script>
|
|
@@ -322,7 +322,7 @@ export default {
|
|
|
322
322
|
forgotPasswordLabel: this.signInContent.forgotPasswordLabel ?? 'Forgot Password?',
|
|
323
323
|
orLabel: this.signInContent.orLabel ?? 'or',
|
|
324
324
|
signUpLabel: this.signInContent.signUpLabel ?? 'Sign Up',
|
|
325
|
-
}
|
|
325
|
+
};
|
|
326
326
|
},
|
|
327
327
|
computed: {
|
|
328
328
|
isLoading() {
|