X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FNews.vue;h=664b5957bbff1e8cf22429bf5f9d63de724479f8;hb=b1fea144e72b3bce1a2d2c630618805eb45424b4;hp=37bd3cae16829819bdfda2d9c66ea199bafbe9b5;hpb=a9e7935190d8fc112e674add05e86b8d0152e8df;p=vchess.git
diff --git a/client/src/views/News.vue b/client/src/views/News.vue
index 37bd3cae..664b5957 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",
@@ -191,7 +195,7 @@ export default {
};
-
+
+