mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Do not validate the model unnecessarily (when closing).
Clear the cache of a node, whenever an object has been removed of that kind, it will allow us to fetch the latest list.
This commit is contained in:
@@ -212,7 +212,7 @@ function(_, pgAdmin, $, Backbone) {
|
||||
|
||||
if (obj) {
|
||||
if (obj instanceof pgBrowser.DataModel) {
|
||||
obj.reset();
|
||||
obj.reset(opts);
|
||||
delete obj;
|
||||
} else if (obj instanceof Backbone.Model) {
|
||||
obj.clear(opts);
|
||||
@@ -233,7 +233,7 @@ function(_, pgAdmin, $, Backbone) {
|
||||
}
|
||||
}
|
||||
}
|
||||
this.clear({silent: true});
|
||||
this.clear(opts);
|
||||
},
|
||||
sessChanged: function() {
|
||||
var self = this;
|
||||
|
@@ -655,6 +655,10 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
|
||||
|
||||
return true;
|
||||
},
|
||||
removed: function(item) {
|
||||
var self = this;
|
||||
setTimeout(function() { self.clear_cache.apply(self, item); }, 0);
|
||||
},
|
||||
refresh: function(n, i) {
|
||||
var self = this,
|
||||
t = pgBrowser.tree,
|
||||
|
Reference in New Issue
Block a user