Replace Alertify alert and confirm with React-based model dialog. Fixes #7053

This commit is contained in:
Akshay Joshi committed 2021-12-07 18:52:40 +05:30
1 parent e327066523
commit fd53e4f5f9
62 files changed
+393 -398

No files matched your search

+5 -3
View File
@@ -7,10 +7,12 @@
//
//////////////////////////////////////////////////////////////
import Notify from '../../../static/js/helpers/Notifier';
define('pgadmin.settings', [
'jquery', 'pgadmin.alertifyjs', 'sources/pgadmin',
'jquery', 'sources/pgadmin',
'sources/gettext', 'sources/url_for', 'pgadmin.backform',
], function($, Alertify, pgAdmin, gettext, url_for) {
], function($, pgAdmin, gettext, url_for) {
// This defines the Preference/Options Dialog for pgAdmin IV.
pgAdmin = pgAdmin || window.pgAdmin || {};
@@ -32,7 +34,7 @@ define('pgadmin.settings', [
// We will force unload method to not to save current layout
// and reload the window
show: function() {
Alertify.confirm(gettext('Reset layout'),
Notify.confirm(gettext('Reset layout'),
gettext('Are you sure you want to reset the current layout? This will cause the application to reload and any un-saved data will be lost.'),
function() {
var reloadingIndicator = $('<div id="reloading-indicator"></div>');