diff --git a/webapp/pages/settings.jsx b/webapp/pages/settings.jsx index fbb0a0e..f7f7fd3 100644 --- a/webapp/pages/settings.jsx +++ b/webapp/pages/settings.jsx @@ -9,8 +9,10 @@ module.exports = function (boardsAPI) { getInitialState: function () { boardsAPI.use(boards => { if (boards.isInit && this.isMounted()) this.setState({ api: true }) - boards.getEventEmitter().on('init', err => { - if (!err && this.isMounted()) this.setState({ api: true }) + boards.getEventEmitter().on('init', (err, limited) => { + if ((!err || limited) && this.isMounted()) { + this.setState({ api: true, limited }) + } }) }) var s = window.localStorage.getItem('ipfs-boards-settings') @@ -44,12 +46,17 @@ module.exports = function (boardsAPI) { } }, isOK: function () { - if (this.state.api) { + if (this.state.limited) { + return
Some features may not be available.
+You're connected to IPFS