summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2017-02-17 20:39:06 +0100
committerSamy Pessé <samypesse@gmail.com>2017-02-17 20:39:06 +0100
commit0198dd291a93e6a577af082b798385d5498b6ec3 (patch)
tree4d5acbff2a40de193a1e86512a646bd700e4db74
parent21884d80c311ee7888d4a59c19423643b798d29a (diff)
downloadgitbook-0198dd291a93e6a577af082b798385d5498b6ec3.zip
gitbook-0198dd291a93e6a577af082b798385d5498b6ec3.tar.gz
gitbook-0198dd291a93e6a577af082b798385d5498b6ec3.tar.bz2
Add property is available to api store
-rw-r--r--packages/gitbook-core/src/models/StateApi.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/gitbook-core/src/models/StateApi.js b/packages/gitbook-core/src/models/StateApi.js
index 430833b..3347c46 100644
--- a/packages/gitbook-core/src/models/StateApi.js
+++ b/packages/gitbook-core/src/models/StateApi.js
@@ -1,6 +1,9 @@
const { Record } = require('immutable');
const DEFAULTS = {
+ // Is the API accessible for this book ? (Is the book on GitBook.com)
+ isAvailable: false,
+ // Current gitbook.com ready the book
currentUser: null
};