@designcrowd/fe-shared-lib 1.0.8-ml-82-21 → 1.0.8-ml-82-22
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
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
>
|
|
152
152
|
<p>
|
|
153
153
|
{{ getSignUpText }}
|
|
154
|
-
<a :href="
|
|
154
|
+
<a :href="signUpHref" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{
|
|
155
155
|
signUpLabel
|
|
156
156
|
}}</a>
|
|
157
157
|
</p>
|
|
@@ -352,11 +352,18 @@ export default {
|
|
|
352
352
|
},
|
|
353
353
|
},
|
|
354
354
|
data() {
|
|
355
|
+
const signUpHref =
|
|
356
|
+
typeof window === 'undefined' ? null : new URL(`https://${window.location.host}${this.signUpUrl}`);
|
|
357
|
+
if (this.aUserName) {
|
|
358
|
+
signUpHref.searchParams.append('initialUserName', this.aUserName);
|
|
359
|
+
}
|
|
360
|
+
|
|
355
361
|
return {
|
|
356
362
|
aUserName: this.initialUserName,
|
|
357
363
|
password: undefined,
|
|
358
364
|
userNameError: undefined,
|
|
359
365
|
passwordError: undefined,
|
|
366
|
+
signUpHref,
|
|
360
367
|
};
|
|
361
368
|
},
|
|
362
369
|
computed: {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
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"
|
|
102
102
|
>
|
|
103
103
|
{{ alreadyHaveAnAccountLabel }}
|
|
104
|
-
<a :href="
|
|
104
|
+
<a :href="signInHref" target="_blank" class="tw-text-info-500">{{ loginLabel }}</a>
|
|
105
105
|
</p>
|
|
106
106
|
</div>
|
|
107
107
|
</div>
|
|
@@ -237,12 +237,19 @@ export default {
|
|
|
237
237
|
},
|
|
238
238
|
},
|
|
239
239
|
data() {
|
|
240
|
+
const signInHref =
|
|
241
|
+
typeof window === 'undefined' ? null : new URL(`https://${window.location.host}${this.signInUrl}`);
|
|
242
|
+
if (this.aUserName) {
|
|
243
|
+
signInHref.searchParams.append('initialUserName', this.aUserName);
|
|
244
|
+
}
|
|
245
|
+
|
|
240
246
|
return {
|
|
241
247
|
isLoading: false,
|
|
242
248
|
aUserName: this.initialUserName,
|
|
243
249
|
password: null,
|
|
244
250
|
passwordError: undefined,
|
|
245
251
|
userNameError: null,
|
|
252
|
+
signInHref,
|
|
246
253
|
};
|
|
247
254
|
},
|
|
248
255
|
computed: {
|