12345678910111213141516171819202122232425262728 |
- /* 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;
- }
- };
|