@icvdeveloper/common-module 0.0.59 → 0.0.60
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/module.json
CHANGED
|
@@ -23,6 +23,7 @@ interface Props {
|
|
|
23
23
|
showCountdown?: boolean;
|
|
24
24
|
mediaButton?: boolean;
|
|
25
25
|
registerButton?: boolean;
|
|
26
|
+
registerPathPrefix?: string;
|
|
26
27
|
loginButton?: boolean;
|
|
27
28
|
viewInfoButton?: boolean;
|
|
28
29
|
isUpcoming?: boolean;
|
|
@@ -39,6 +40,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
39
40
|
showCountdown: true,
|
|
40
41
|
mediaButton: true,
|
|
41
42
|
registerButton: true,
|
|
43
|
+
registerPathPrefix: "",
|
|
42
44
|
loginButton: true,
|
|
43
45
|
viewInfoButton: true,
|
|
44
46
|
isUpcoming: true,
|
|
@@ -62,6 +64,7 @@ const {
|
|
|
62
64
|
showCountdown,
|
|
63
65
|
mediaButton,
|
|
64
66
|
registerButton,
|
|
67
|
+
registerPathPrefix,
|
|
65
68
|
loginButton,
|
|
66
69
|
viewInfoButton,
|
|
67
70
|
isUpcoming,
|
|
@@ -353,7 +356,7 @@ const showLoginButton = computed((): boolean => {
|
|
|
353
356
|
<!-- register button -->
|
|
354
357
|
<a
|
|
355
358
|
v-if="registerButton && showConferenceRegButton(conference)"
|
|
356
|
-
:href="getConferenceRegUrl(conference)"
|
|
359
|
+
:href="getConferenceRegUrl(conference, registerPathPrefix)"
|
|
357
360
|
:target="
|
|
358
361
|
/^http/.test(getConferenceRegUrl(conference))
|
|
359
362
|
? '_blank'
|
|
@@ -40,7 +40,7 @@ export type UseConferenceHelpersMethods = {
|
|
|
40
40
|
/**
|
|
41
41
|
* Get conference registration url
|
|
42
42
|
*/
|
|
43
|
-
getConferenceRegUrl: (_conference?: Conference) => string;
|
|
43
|
+
getConferenceRegUrl: (_conference?: Conference, _registerPath?: string) => string;
|
|
44
44
|
/**
|
|
45
45
|
* get conference registration text
|
|
46
46
|
*/
|
|
@@ -184,10 +184,10 @@ export const useConferenceHelpers = (conference) => {
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
-
const getConferenceRegUrl = (_conference) => {
|
|
187
|
+
const getConferenceRegUrl = (_conference, _registerPath) => {
|
|
188
188
|
const _selectedConference = _getSelectedConference(_conference);
|
|
189
189
|
if (globalConfigValue.value("townhall_registration_enabled", false)) {
|
|
190
|
-
if (_selectedConference.id === currentConference.id) {
|
|
190
|
+
if (_selectedConference.id === currentConference.value.id) {
|
|
191
191
|
return "/";
|
|
192
192
|
} else if (_selectedConference.state === "live" || _selectedConference.state === "mixed") {
|
|
193
193
|
return `/upcoming-events/${_selectedConference.id}`;
|
|
@@ -204,6 +204,8 @@ export const useConferenceHelpers = (conference) => {
|
|
|
204
204
|
const portalExternalUrl = globalConfigValue.value("external_reg_url");
|
|
205
205
|
if (portalExternalUrl)
|
|
206
206
|
return portalExternalUrl;
|
|
207
|
+
if (_registerPath)
|
|
208
|
+
return _registerPath + _selectedConference.id;
|
|
207
209
|
return `/registration/options/${_selectedConference.id}`;
|
|
208
210
|
};
|
|
209
211
|
const getConferenceRegText = (_conference) => {
|