aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/notice-controller.js
diff options
context:
space:
mode:
authorThomas <thomas.b.huang@gmail.com>2018-06-19 03:37:01 +0800
committerThomas <thomas.b.huang@gmail.com>2018-06-19 03:37:01 +0800
commitea0dcdd3124ec65d3145f0ac7790a6172603d88c (patch)
treeb071efe391d00f40805bb36a5c0f137eca14b8b7 /app/scripts/notice-controller.js
parentef31eeccb244592aa17dd677e854e106c9bb5848 (diff)
parentd910c35e90d0d725e86b7743538b6c6c429f26f0 (diff)
downloadtangerine-wallet-browser-ea0dcdd3124ec65d3145f0ac7790a6172603d88c.tar
tangerine-wallet-browser-ea0dcdd3124ec65d3145f0ac7790a6172603d88c.tar.gz
tangerine-wallet-browser-ea0dcdd3124ec65d3145f0ac7790a6172603d88c.tar.bz2
tangerine-wallet-browser-ea0dcdd3124ec65d3145f0ac7790a6172603d88c.tar.lz
tangerine-wallet-browser-ea0dcdd3124ec65d3145f0ac7790a6172603d88c.tar.xz
tangerine-wallet-browser-ea0dcdd3124ec65d3145f0ac7790a6172603d88c.tar.zst
tangerine-wallet-browser-ea0dcdd3124ec65d3145f0ac7790a6172603d88c.zip
Merge branch 'develop' into v4.8.0
Diffstat (limited to 'app/scripts/notice-controller.js')
-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 () {