@icvdeveloper/common-module 1.4.7 → 1.4.8
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/CHANGELOG.md +2 -0
- package/dist/module.json +1 -1
- package/dist/runtime/composables/useUcc.mjs +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/module.json
CHANGED
|
@@ -74,9 +74,12 @@ export const useUcc = () => {
|
|
|
74
74
|
};
|
|
75
75
|
const postAuthRedirect = () => {
|
|
76
76
|
if (window.uccMixin.conference.state == "live") {
|
|
77
|
+
console.log("live event");
|
|
77
78
|
router.push(window.uccMixin.webcastUrl);
|
|
78
79
|
} else if (window.uccMixin.conference.state == "archive") {
|
|
80
|
+
console.log("archive event");
|
|
79
81
|
toggleEmailFormDisplay(false);
|
|
82
|
+
console.log("reloading page...");
|
|
80
83
|
window.location.reload();
|
|
81
84
|
}
|
|
82
85
|
};
|
|
@@ -104,12 +107,16 @@ export const useUcc = () => {
|
|
|
104
107
|
const handleLoginV3Response = (response, email) => {
|
|
105
108
|
let conferences = get(response, "data.conferences", []);
|
|
106
109
|
let _conference = window.uccMixin.conference;
|
|
110
|
+
console.log("conf id: ", _conference.id);
|
|
107
111
|
let hasAccess = find(conferences, { id: _conference.id });
|
|
112
|
+
console.log("has access: ", hasAccess);
|
|
108
113
|
if (hasAccess) {
|
|
114
|
+
console.log("hasAcess passed");
|
|
109
115
|
loginEmailOnly(response.data).then(() => {
|
|
110
116
|
postAuthRedirect();
|
|
111
117
|
});
|
|
112
118
|
} else {
|
|
119
|
+
console.log("hasAccess failed");
|
|
113
120
|
uccShowEventSignUp(email);
|
|
114
121
|
}
|
|
115
122
|
};
|
|
@@ -135,6 +142,7 @@ export const useUcc = () => {
|
|
|
135
142
|
};
|
|
136
143
|
const toggleEmailFormDisplay = (show) => {
|
|
137
144
|
document.getElementById("uccEmailForm").style.display = show ? "block" : "none";
|
|
145
|
+
console.log("toggled email form display", show);
|
|
138
146
|
};
|
|
139
147
|
return {
|
|
140
148
|
loadUccScript,
|