mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-13 06:24:45 -05:00
Ensure PG/EPAS configuration warnings are shown appropriate for the server type. Fixes #1563
This commit is contained in:
committed by
Dave Page
parent
d6391c7e9b
commit
013ff1090e
@@ -387,7 +387,8 @@ TODO LIST FOR BACKUP:
|
|||||||
preference_name = 'pg_bin_dir',
|
preference_name = 'pg_bin_dir',
|
||||||
msg = '{{ _('Please configure the PostgreSQL Binary Path in the Preferences dialog.') }}';
|
msg = '{{ _('Please configure the PostgreSQL Binary Path in the Preferences dialog.') }}';
|
||||||
|
|
||||||
if (server_data.server_type == 'ppas') {
|
if ((server_data.type && server_data.type == 'ppas') ||
|
||||||
|
server_data.server_type == 'ppas') {
|
||||||
preference_name = 'ppas_bin_dir';
|
preference_name = 'ppas_bin_dir';
|
||||||
msg = '{{ _('Please configure the EDB Advanced Server Binary Path in the Preferences dialog.') }}';
|
msg = '{{ _('Please configure the EDB Advanced Server Binary Path in the Preferences dialog.') }}';
|
||||||
}
|
}
|
||||||
@@ -602,7 +603,8 @@ TODO LIST FOR BACKUP:
|
|||||||
preference_name = 'pg_bin_dir',
|
preference_name = 'pg_bin_dir',
|
||||||
msg = '{{ _('Please set binary path for PostgreSQL Server from preferences.') }}';
|
msg = '{{ _('Please set binary path for PostgreSQL Server from preferences.') }}';
|
||||||
|
|
||||||
if (server_data.server_type == 'ppas') {
|
if ((server_data.type && server_data.type == 'ppas') ||
|
||||||
|
server_data.server_type == 'ppas') {
|
||||||
preference_name = 'ppas_bin_dir';
|
preference_name = 'ppas_bin_dir';
|
||||||
msg = '{{ _('Please set binary path for EDB Advanced Server from preferences.') }}';
|
msg = '{{ _('Please set binary path for EDB Advanced Server from preferences.') }}';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -324,7 +324,8 @@ define(
|
|||||||
preference_name = 'pg_bin_dir',
|
preference_name = 'pg_bin_dir',
|
||||||
msg = '{{ _('Please configure the PostgreSQL Binary Path in the Preferences dialog.') }}';
|
msg = '{{ _('Please configure the PostgreSQL Binary Path in the Preferences dialog.') }}';
|
||||||
|
|
||||||
if (server_data.server_type == 'ppas') {
|
if ((server_data.type && server_data.type == 'ppas') ||
|
||||||
|
server_data.server_type == 'ppas') {
|
||||||
preference_name = 'ppas_bin_dir';
|
preference_name = 'ppas_bin_dir';
|
||||||
msg = '{{ _('Please configure the EDB Advanced Server Binary Path in the Preferences dialog.') }}';
|
msg = '{{ _('Please configure the EDB Advanced Server Binary Path in the Preferences dialog.') }}';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -213,7 +213,8 @@ define(
|
|||||||
preference_name = 'pg_bin_dir',
|
preference_name = 'pg_bin_dir',
|
||||||
msg = '{{ _('Please configure the PostgreSQL Binary Path in the Preferences dialog.') }}';
|
msg = '{{ _('Please configure the PostgreSQL Binary Path in the Preferences dialog.') }}';
|
||||||
|
|
||||||
if (server_data.server_type == 'ppas') {
|
if ((server_data.type && server_data.type == 'ppas') ||
|
||||||
|
server_data.server_type == 'ppas') {
|
||||||
preference_name = 'ppas_bin_dir';
|
preference_name = 'ppas_bin_dir';
|
||||||
msg = '{{ _('Please configure the EDB Advanced Server Binary Path in the Preferences dialog.') }}';
|
msg = '{{ _('Please configure the EDB Advanced Server Binary Path in the Preferences dialog.') }}';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -313,7 +313,8 @@ define([
|
|||||||
preference_name = 'pg_bin_dir',
|
preference_name = 'pg_bin_dir',
|
||||||
msg = '{{ _('Please configure the PostgreSQL Binary Path in the Preferences dialog.') }}';
|
msg = '{{ _('Please configure the PostgreSQL Binary Path in the Preferences dialog.') }}';
|
||||||
|
|
||||||
if (server_data.server_type == 'ppas') {
|
if ((server_data.type && server_data.type == 'ppas') ||
|
||||||
|
server_data.server_type == 'ppas') {
|
||||||
preference_name = 'ppas_bin_dir';
|
preference_name = 'ppas_bin_dir';
|
||||||
msg = '{{ _('Please configure the EDB Advanced Server Binary Path in the Preferences dialog.') }}';
|
msg = '{{ _('Please configure the EDB Advanced Server Binary Path in the Preferences dialog.') }}';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user