Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Moves login state of dialog to be first, to be the initial state.

damenchofda52f716028
diff --git a/modules/UI/authentication/LoginDialog.js b/modules/UI/authentication/LoginDialog.js
index 1547fbaab6..5ef5b1472a 100644
--- a/modules/UI/authentication/LoginDialog.js
+++ b/modules/UI/authentication/LoginDialog.js
@@ -62,29 +62,6 @@ function LoginDialog(successCallback, cancelCallback) {
}
const states = {
- connecting: {
- buttons: [],
- defaultButton: 0,
- html: '<div id="connectionStatus"></div>',
- titleKey: 'dialog.connecting'
- },
- finished: {
- buttons: finishedButtons,
- defaultButton: 0,
- html: '<div id="errorMessage"></div>',
- titleKey: 'dialog.error',
-
- submit(e, v) {
- e.preventDefault();
- if (v === 'retry') {
- // eslint-disable-next-line no-use-before-define
- connDialog.goToState('login');
- } else {
- // User cancelled
- cancelCallback();
- }
- }
- },
login: {
buttons: loginButtons,
focus: ':input:first',
@@ -107,6 +84,29 @@ function LoginDialog(successCallback, cancelCallback) {
cancelCallback();
}
}
+ },
+ connecting: {
+ buttons: [],
+ defaultButton: 0,
+ html: '<div id="connectionStatus"></div>',
+ titleKey: 'dialog.connecting'
+ },
+ finished: {
+ buttons: finishedButtons,
+ defaultButton: 0,
+ html: '<div id="errorMessage"></div>',
+ titleKey: 'dialog.error',
+
+ submit(e, v) {
+ e.preventDefault();
+ if (v === 'retry') {
+ // eslint-disable-next-line no-use-before-define
+ connDialog.goToState('login');
+ } else {
+ // User cancelled
+ cancelCallback();
+ }
+ }
}
};
const connDialog = APP.UI.messageHandler.openDialogWithStates(