From: Benjamin Auder Date: Mon, 30 Mar 2020 23:58:05 +0000 (+0200) Subject: 'update' X-Git-Url: https://git.auder.net/variants/Bario/%3C?a=commitdiff_plain;h=fe23f9772e9f3fb7d60c0e72ba850e764d5c3d8f;p=vchess.git 'update' --- diff --git a/client/src/views/News.vue b/client/src/views/News.vue index e3d13539..4f424159 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.includes(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: functio() { + return params.devs.includes(this.st.user.id); + } + }, created: function() { ajax( "/news",