Fix Dynamo variant (hopefully...)
[vchess.git] / client / src / views / News.vue
index 37bd3ca..96492ab 100644 (file)
@@ -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",