X-Git-Url: https://git.auder.net/doc/current/git-logo.png?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FNews.vue;h=96492ab25c6faaf929de9f35d420e7a0fc6594c5;hb=cfceecbafc550838f9ec425d3695d0b0d208920e;hp=37bd3cae16829819bdfda2d9c66ea199bafbe9b5;hpb=a9e7935190d8fc112e674add05e86b8d0152e8df;p=vchess.git diff --git a/client/src/views/News.vue b/client/src/views/News.vue index 37bd3cae..96492ab2 100644 --- a/client/src/views/News.vue +++ b/client/src/views/News.vue @@ -51,7 +51,6 @@ export default { data: function() { return { st: store.state, - devTeam: params.devs.include(store.state.user.id), // timestamp of oldest showed news: cursor: Number.MAX_SAFE_INTEGER, // hasMore == TRUE: a priori there could be more news to load @@ -61,6 +60,11 @@ export default { infoMsg: "" }; }, + computed: { + devTeam: function() { + return params.devs.includes(this.st.user.id); + } + }, created: function() { ajax( "/news",