mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-25 14:10:05 -05:00
Replace Alertify alert and confirm with React-based model dialog. Fixes #7053
This commit is contained in:
1 parent
e327066523
commit
fd53e4f5f9
62 files changed
+393
-398
No files matched your search
@@ -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>');
|
||||
|
||||
Reference in new issue
Block a user