mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Warn the user when connecting to a server that is older than pgAdmin supports. Fixes #5772
This commit is contained in:
parent
d2577e32e6
commit
4eb17afe4e
@ -10,6 +10,7 @@ New features
|
||||
************
|
||||
|
||||
| `Issue #2042 <https://redmine.postgresql.org/issues/2042>`_ - Added SQL Formatter support in Query Tool.
|
||||
| `Issue #5772 <https://redmine.postgresql.org/issues/5772>`_ - Warn the user when connecting to a server that is older than pgAdmin supports.
|
||||
|
||||
Housekeeping
|
||||
************
|
||||
|
@ -1195,7 +1195,16 @@ define('pgadmin.node.server', [
|
||||
pgBrowser.serverInfo || {};
|
||||
serverInfo[_data._id] = _.extend({}, _data);
|
||||
|
||||
Alertify.success(res.info);
|
||||
if (_data.version < 90500) {
|
||||
Alertify.warning(gettext('You have connected to a server version that is older ' +
|
||||
'than is supported by pgAdmin. This may cause pgAdmin to break in strange and ' +
|
||||
'unpredictable ways. Or a plague of frogs. Either way, you have been warned!') +
|
||||
'<br /><br />' +
|
||||
res.info, 0);
|
||||
} else {
|
||||
Alertify.success(res.info);
|
||||
}
|
||||
|
||||
obj.trigger('connected', obj, _item, _data);
|
||||
|
||||
// Generate the event that server is connected
|
||||
|
@ -225,6 +225,13 @@
|
||||
@extend .ajs-text-smoothing;
|
||||
}
|
||||
|
||||
.ajs-message.ajs-warning.ajs-visible {
|
||||
background: $alert-warning-bg;
|
||||
border: $border-width solid $alert-warning-color;
|
||||
color: $alert-warning-color;
|
||||
@extend .ajs-text-smoothing;
|
||||
}
|
||||
|
||||
.ajs-message.ajs-visible {
|
||||
background: $alert-primary-bg;
|
||||
border: $border-width solid $alert-primary-color;
|
||||
|
@ -77,6 +77,8 @@ $alert-danger-bg: $color-danger-lighter !default;
|
||||
$alert-danger-color: $color-danger !default;
|
||||
$alert-success-bg: $color-success-light !default;
|
||||
$alert-success-color: $color-success !default;
|
||||
$alert-warning-bg: $color-warning !default;
|
||||
$alert-warning-color: $color-bg !default;
|
||||
|
||||
$navbar-bg: $color-primary !default;
|
||||
$navbar-font-size: 0.925rem;
|
||||
|
@ -32,6 +32,8 @@ $alert-danger-bg: $color-danger-lighter !default;
|
||||
$alert-danger-color: $color-danger !default;
|
||||
$alert-success-bg: $color-success-light !default;
|
||||
$alert-success-color: $color-success !default;
|
||||
$alert-warning-bg: $color-success-light !default;
|
||||
$alert-warning-color: $color-success !default;
|
||||
$negative-bg: $color-gray-light;
|
||||
$popover-bg: $color-gray-dark;
|
||||
$popover-body-color: $white;
|
||||
|
@ -59,6 +59,9 @@ $alert-danger-bg: $color-bg;
|
||||
$alert-danger-color: $color-danger;
|
||||
$alert-success-bg: $color-bg;
|
||||
$alert-success-color: $color-success;
|
||||
$alert-warning-bg: $color-warning;
|
||||
$alert-warning-color: $color-bg;
|
||||
|
||||
$alert-header-fg: $color-fg;
|
||||
|
||||
$table-bg: $color-gray-lighter;
|
||||
|
@ -61,8 +61,10 @@ $alert-primary-bg: $color-primary;
|
||||
$alert-primary-color: $color-bg;
|
||||
$alert-danger-bg: $color-danger;
|
||||
$alert-danger-color: $color-bg !important;
|
||||
$alert-success-bg̰: $color-success;
|
||||
$alert-success-bg: $color-success;
|
||||
$alert-success-color: $color-bg;
|
||||
$alert-warning-bg: $color-warning;
|
||||
$alert-warning-color: $color-bg;
|
||||
|
||||
$alert-color-fg: $color-bg;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user