Files
jitsi-meet/modules/UI/authentication/LoginDialog.js
Robert Pintilii 6b28af8329 ref(flow) Remove flow (#13343)
Remove flow-related packages
Remove type annotations from JS files
2023-05-12 16:39:18 +03:00

29 lines
727 B
JavaScript

/* global APP */
export default {
/**
* Show notification that external auth is required (using provided url).
* @param {string} url - URL to use for external auth.
* @param {function} callback - callback to invoke when auth popup is closed.
* @returns auth dialog
*/
showExternalAuthDialog(url, callback) {
const dialog = APP.UI.messageHandler.openCenteredPopup(
url, 910, 660,
// On closed
callback
);
if (!dialog) {
APP.UI.messageHandler.showWarning({
descriptionKey: 'dialog.popupError',
titleKey: 'dialog.popupErrorTitle'
});
}
return dialog;
}
};