mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-28 11:33:53 -06:00
Ensure PG/EPAS configuration warnings are shown appropriate for the server type. Fixes #1563
This commit is contained in:
parent
d6391c7e9b
commit
013ff1090e
@ -387,7 +387,8 @@ TODO LIST FOR BACKUP:
|
||||
preference_name = 'pg_bin_dir',
|
||||
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';
|
||||
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',
|
||||
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';
|
||||
msg = '{{ _('Please set binary path for EDB Advanced Server from preferences.') }}';
|
||||
}
|
||||
|
@ -324,7 +324,8 @@ define(
|
||||
preference_name = 'pg_bin_dir',
|
||||
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';
|
||||
msg = '{{ _('Please configure the EDB Advanced Server Binary Path in the Preferences dialog.') }}';
|
||||
}
|
||||
|
@ -213,7 +213,8 @@ define(
|
||||
preference_name = 'pg_bin_dir',
|
||||
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';
|
||||
msg = '{{ _('Please configure the EDB Advanced Server Binary Path in the Preferences dialog.') }}';
|
||||
}
|
||||
|
@ -313,7 +313,8 @@ define([
|
||||
preference_name = 'pg_bin_dir',
|
||||
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';
|
||||
msg = '{{ _('Please configure the EDB Advanced Server Binary Path in the Preferences dialog.') }}';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user