mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Port change user password and 2FA dialog to React. Fixes #7568
This commit is contained in:
committed by
Akshay Joshi
parent
5e4d3cc535
commit
8b7ce2c276
@@ -8,16 +8,16 @@
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
import Notify from '../../../../static/js/helpers/Notifier';
|
||||
import { showChangeOwnership } from '../../../../static/js/Dialogs/index';
|
||||
import { showChangeOwnership, showUrlDialog } from '../../../../static/js/Dialogs/index';
|
||||
|
||||
define([
|
||||
'sources/gettext', 'sources/url_for', 'jquery', 'underscore', 'pgadmin.alertifyjs',
|
||||
'pgadmin.browser', 'backbone', 'backgrid', 'backform', 'pgadmin.browser.node', 'pgadmin.backform',
|
||||
'pgadmin.user_management.current_user', 'sources/utils', 'pgadmin.browser.constants',
|
||||
'pgadmin.browser.dialog','backgrid.select.all', 'backgrid.filter',
|
||||
'backgrid.select.all', 'backgrid.filter',
|
||||
], function(
|
||||
gettext, url_for, $, _, alertify, pgBrowser, Backbone, Backgrid, Backform,
|
||||
pgNode, pgBackform, userInfo, commonUtils, pgConst, pgDialog,
|
||||
pgNode, pgBackform, userInfo, commonUtils, pgConst,
|
||||
) {
|
||||
|
||||
// if module is already initialized, refer to that.
|
||||
@@ -90,9 +90,11 @@ define([
|
||||
|
||||
// Callback to draw change password Dialog.
|
||||
change_password: function(url) {
|
||||
pgDialog.url_dialog(
|
||||
gettext('Change Password'), url, 'change_user_password.html',
|
||||
);
|
||||
showUrlDialog(gettext('Change Password'), url, 'change_user_password.html', undefined, pgBrowser.stdH.lg);
|
||||
},
|
||||
|
||||
show_mfa: function(url) {
|
||||
showUrlDialog(gettext('Authentication'), url, 'mfa.html', 1200, 680);
|
||||
},
|
||||
|
||||
is_editable: function(m) {
|
||||
|
||||
Reference in New Issue
Block a user