|
@@ -184,29 +184,33 @@ function muteLocalVideo (muted) {
|
184
|
184
|
* If requested show a thank you dialog before that.
|
185
|
185
|
* If we have a close page enabled, redirect to it without
|
186
|
186
|
* showing any other dialog.
|
187
|
|
- * @param {boolean} showThankYou whether we should show a thank you dialog
|
|
187
|
+ *
|
|
188
|
+ * @param {object} data Feedback data
|
|
189
|
+ * @param {boolean} data.showThankYou - whether we should show thank you dialog
|
|
190
|
+ * @param {boolean} data.feedbackSubmitted - whether feedback was submitted
|
188
|
191
|
*/
|
189
|
|
-function maybeRedirectToWelcomePage(showThankYou) {
|
190
|
|
-
|
|
192
|
+function maybeRedirectToWelcomePage(data) {
|
191
|
193
|
// if close page is enabled redirect to it, without further action
|
192
|
194
|
if (config.enableClosePage) {
|
193
|
|
- window.location.pathname = "close.html";
|
|
195
|
+ if (data.feedbackSubmitted)
|
|
196
|
+ window.location.pathname = "close.html";
|
|
197
|
+ else
|
|
198
|
+ window.location.pathname = "close2.html";
|
194
|
199
|
return;
|
195
|
200
|
}
|
196
|
201
|
|
197
|
|
- if (showThankYou) {
|
|
202
|
+ // else: show thankYou dialog only if there is no feedback
|
|
203
|
+ if (data.showThankYou)
|
198
|
204
|
APP.UI.messageHandler.openMessageDialog(
|
199
|
205
|
null, "dialog.thankYou", {appName:interfaceConfig.APP_NAME});
|
200
|
|
- }
|
201
|
206
|
|
202
|
|
- if (!config.enableWelcomePage) {
|
203
|
|
- return;
|
|
207
|
+ // if Welcome page is enabled redirect to welcome page after 3 sec.
|
|
208
|
+ if (config.enableWelcomePage) {
|
|
209
|
+ setTimeout(() => {
|
|
210
|
+ APP.settings.setWelcomePageEnabled(true);
|
|
211
|
+ window.location.pathname = "/";
|
|
212
|
+ }, 3000);
|
204
|
213
|
}
|
205
|
|
- // redirect to welcome page
|
206
|
|
- setTimeout(() => {
|
207
|
|
- APP.settings.setWelcomePageEnabled(true);
|
208
|
|
- window.location.pathname = "/";
|
209
|
|
- }, 3000);
|
210
|
214
|
}
|
211
|
215
|
|
212
|
216
|
/**
|