summaryrefslogtreecommitdiff
path: root/src/fauxton/app/modules/databases/routes.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/fauxton/app/modules/databases/routes.js')
-rw-r--r--src/fauxton/app/modules/databases/routes.js15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/fauxton/app/modules/databases/routes.js b/src/fauxton/app/modules/databases/routes.js
index ac50b4bc8..e63c3a769 100644
--- a/src/fauxton/app/modules/databases/routes.js
+++ b/src/fauxton/app/modules/databases/routes.js
@@ -59,20 +59,7 @@ function(app, FauxtonAPI, Databases, Views) {
},
establish: function() {
- var databases = this.databases;
- var deferred = this.deferred;
-
- databases.fetch().done(function(resp) {
- FauxtonAPI.when(databases.map(function(database) {
- return database.status.fetch();
- })).always(function(resp) {
- //make this always so that even if a user is not allowed access to a database
- //they will still see a list of all databases
- deferred.resolve();
- });
- });
-
- return [deferred];
+ return [this.databases.fetch()];
}
});