couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [1/2] fauxton commit: updated refs/heads/master to 0db3f7b
Date Thu, 03 Nov 2016 14:02:00 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 13d18075c -> 0db3f7bdb


Don't check for existing db for jump to db


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/45569a1f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/45569a1f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/45569a1f

Branch: refs/heads/master
Commit: 45569a1fdf121fb74cec654795cb7bb1cf491fe4
Parents: 13d1807
Author: Garren Smith <garren.smith@gmail.com>
Authored: Thu Nov 3 15:29:57 2016 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Thu Nov 3 15:29:57 2016 +0200

----------------------------------------------------------------------
 app/addons/databases/actions.js | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/45569a1f/app/addons/databases/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/actions.js b/app/addons/databases/actions.js
index 9f38663..bd09672 100644
--- a/app/addons/databases/actions.js
+++ b/app/addons/databases/actions.js
@@ -176,16 +176,9 @@ export default {
 
     databaseName = databaseName.trim();
 
-    if (Stores.databasesStore.doesDatabaseExist(databaseName)) {
-      var url = FauxtonAPI.urls('allDocs', 'app', app.utils.safeURLName(databaseName), '');
-      // use the next cpu tick to allow react-select to unmount prorperly
-      return setTimeout(() => { FauxtonAPI.navigate(url); });
-    }
-
-    FauxtonAPI.addNotification({
-      msg: 'Database does not exist.',
-      type: 'error'
-    });
+    const url = FauxtonAPI.urls('allDocs', 'app', app.utils.safeURLName(databaseName), '');
+    // use the next cpu tick to allow react-select to unmount prorperly
+    return setTimeout(() => { FauxtonAPI.navigate(url); });
   },
 
   fetchAllDbsWithKey: (id, callback) => {


Mime
View raw message