mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-03-24 04:20:20 +00:00
29 lines
727 B
JavaScript
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;
|
|
}
|
|
};
|