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