@icvdeveloper/common-module 0.0.64 → 0.0.66
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
|
@@ -24,6 +24,7 @@ interface Props {
|
|
|
24
24
|
mediaButton?: boolean;
|
|
25
25
|
registerButton?: boolean;
|
|
26
26
|
registerPathPrefix?: string;
|
|
27
|
+
eventPathPrefix?: string;
|
|
27
28
|
loginButton?: boolean;
|
|
28
29
|
viewInfoButton?: boolean;
|
|
29
30
|
isUpcoming?: boolean;
|
|
@@ -41,6 +42,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
41
42
|
mediaButton: true,
|
|
42
43
|
registerButton: true,
|
|
43
44
|
registerPathPrefix: "",
|
|
45
|
+
eventPathPrefix: "",
|
|
44
46
|
loginButton: true,
|
|
45
47
|
viewInfoButton: true,
|
|
46
48
|
isUpcoming: true,
|
|
@@ -234,9 +236,9 @@ const showLoginButton = computed((): boolean => {
|
|
|
234
236
|
{{ getBrand(conference.affiliates) }}
|
|
235
237
|
</h3>
|
|
236
238
|
<nuxt-link
|
|
237
|
-
:to="`/${isUpcoming ? 'upcoming-events' : 'past-events'}/${
|
|
239
|
+
:to="eventPathPrefix ? (eventPathPrefix + conference.id) : (`/${isUpcoming ? 'upcoming-events' : 'past-events'}/${
|
|
238
240
|
conference.id
|
|
239
|
-
}`"
|
|
241
|
+
}`)"
|
|
240
242
|
class="no-underline"
|
|
241
243
|
>
|
|
242
244
|
<h2
|
|
@@ -321,7 +323,7 @@ const showLoginButton = computed((): boolean => {
|
|
|
321
323
|
<button
|
|
322
324
|
v-if="viewInfoButton"
|
|
323
325
|
:class="classBinding(classObject, 'buttonItem', buttonClass)"
|
|
324
|
-
@click="goEventPage(conference)"
|
|
326
|
+
@click="goEventPage(conference, eventPathPrefix)"
|
|
325
327
|
>
|
|
326
328
|
View Info
|
|
327
329
|
</button>
|
|
@@ -16,7 +16,7 @@ export type UseEventsMethods = {
|
|
|
16
16
|
/**
|
|
17
17
|
* redirects to event landing page
|
|
18
18
|
*/
|
|
19
|
-
goEventPage: (conference: Conference) => void;
|
|
19
|
+
goEventPage: (conference: Conference, _eventPath?: string) => void;
|
|
20
20
|
/**
|
|
21
21
|
* display modal login modal and set its conference prop
|
|
22
22
|
*/
|
|
@@ -10,8 +10,12 @@ export const useEvents = () => {
|
|
|
10
10
|
const loginModalVisible = ref(false);
|
|
11
11
|
const conferenceToLoginTo = ref(null);
|
|
12
12
|
const { pagesConfigValue } = storeToRefs(useTemplateConfigsStore());
|
|
13
|
-
const goEventPage = (conference) => {
|
|
14
|
-
|
|
13
|
+
const goEventPage = (conference, _eventPath) => {
|
|
14
|
+
if (_eventPath) {
|
|
15
|
+
router.push(_eventPath + conference.id);
|
|
16
|
+
} else {
|
|
17
|
+
router.push(`/upcoming-events/${conference.id}`);
|
|
18
|
+
}
|
|
15
19
|
};
|
|
16
20
|
const setConferenceToLoginTo = (conference) => {
|
|
17
21
|
conferenceToLoginTo.value = conference;
|