aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-06-19 03:10:35 +0800
committerkumavis <aaron@kumavis.me>2018-06-19 03:10:35 +0800
commit356cc500956e40b48d78c9dcaf907d498eb707f7 (patch)
tree5d86d0318aa6cd5c53cad458f13beb2e546d5c5c /app
parent9a7f363c2a8dcec041569c59e1b1a7c485515a33 (diff)
downloadtangerine-wallet-browser-356cc500956e40b48d78c9dcaf907d498eb707f7.tar
tangerine-wallet-browser-356cc500956e40b48d78c9dcaf907d498eb707f7.tar.gz
tangerine-wallet-browser-356cc500956e40b48d78c9dcaf907d498eb707f7.tar.bz2
tangerine-wallet-browser-356cc500956e40b48d78c9dcaf907d498eb707f7.tar.lz
tangerine-wallet-browser-356cc500956e40b48d78c9dcaf907d498eb707f7.tar.xz
tangerine-wallet-browser-356cc500956e40b48d78c9dcaf907d498eb707f7.tar.zst
tangerine-wallet-browser-356cc500956e40b48d78c9dcaf907d498eb707f7.zip
notice controller - properly show new notices for non-new users
Diffstat (limited to 'app')
-rw-r--r--app/scripts/notice-controller.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/scripts/notice-controller.js b/app/scripts/notice-controller.js
index e202043cf..2def4371e 100644
--- a/app/scripts/notice-controller.js
+++ b/app/scripts/notice-controller.js
@@ -13,12 +13,15 @@ module.exports = class NoticeController extends EventEmitter {
this.firstVersion = opts.firstVersion
this.version = opts.version
const initState = extend({
- noticesList: this._filterNotices(hardCodedNotices),
+ noticesList: [],
}, opts.initState)
this.store = new ObservableStore(initState)
+ // setup memStore
this.memStore = new ObservableStore({})
this.store.subscribe(() => this._updateMemstore())
this._updateMemstore()
+ // pull in latest notices
+ this.updateNoticesList()
}
getNoticesList () {
@@ -84,8 +87,8 @@ module.exports = class NoticeController extends EventEmitter {
}
async _retrieveNoticeData () {
- // Placeholder for the API.
- return []
+ // Placeholder for remote notice API.
+ return hardCodedNotices
}
_updateMemstore () {