From 3a30f271533420ca9a18968b7b2ceb839fd1bdf8 Mon Sep 17 00:00:00 2001 From: Nikhil Mohite Date: Wed, 24 Nov 2021 10:58:15 +0530 Subject: [PATCH] 1. Updated notification message for the reset layout. 2. Added notification type in alertify which was missing. refs #6988 --- web/pgadmin/browser/static/js/layout.js | 2 +- web/pgadmin/static/js/alertify.pgadmin.defaults.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/browser/static/js/layout.js b/web/pgadmin/browser/static/js/layout.js index 6fa19e479..fa482f515 100644 --- a/web/pgadmin/browser/static/js/layout.js +++ b/web/pgadmin/browser/static/js/layout.js @@ -67,7 +67,7 @@ _.extend(pgBrowser, { if(_panel.length == 0 && defaultLayoutCallback){ // clear the wcDocker before reset layout. docker.clear(); - Alertify.info(gettext('pgAdmin has detected some issues with the UI layout, so reset it to the default.'), 0); + Alertify.info(gettext('pgAdmin has reset the layout because the previously saved layout is invalid.'), 0); if(defaultLayoutCallback){ defaultLayoutCallback(docker); } diff --git a/web/pgadmin/static/js/alertify.pgadmin.defaults.js b/web/pgadmin/static/js/alertify.pgadmin.defaults.js index d38bfff94..6c0a0054a 100644 --- a/web/pgadmin/static/js/alertify.pgadmin.defaults.js +++ b/web/pgadmin/static/js/alertify.pgadmin.defaults.js @@ -466,7 +466,7 @@ define([
${message}
`; - var alert = alertify.notify(alertMessage, timeout); + var alert = alertify.notify(alertMessage, 'custom', timeout); return alert; }, warning: function(message, timeout) {