mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure we update the error message on dashboard grids when it changes.
This commit is contained in:
parent
0628ee0425
commit
c3762c9059
@ -328,15 +328,16 @@ function(r, $, pgAdmin, _, Backbone) {
|
|||||||
cls = 'danger';
|
cls = 'danger';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stash the old content, and replace with the error, if not already present
|
// Replace the content with the error, if not already present. Always update the message
|
||||||
if (!$(container).hasClass('grid-error')) {
|
if (!$(container).hasClass('grid-error')) {
|
||||||
$(filter.el).hide();
|
$(filter.el).hide();
|
||||||
$(container).addClass('grid-error');
|
$(container).addClass('grid-error');
|
||||||
$(container).html(
|
|
||||||
'<div class="alert alert-' + cls + ' pg-panel-message" role="alert">' + msg + '</div>'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(container).html(
|
||||||
|
'<div class="alert alert-' + cls + ' pg-panel-message" role="alert">' + msg + '</div>'
|
||||||
|
);
|
||||||
|
|
||||||
// Try again
|
// Try again
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
pgAdmin.Dashboard.render_grid_data(container, data);
|
pgAdmin.Dashboard.render_grid_data(container, data);
|
||||||
|
Loading…
Reference in New Issue
Block a user