X-Git-Url: https://git.auder.net/doc/current/git-logo.png?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FNews.vue;h=664b5957bbff1e8cf22429bf5f9d63de724479f8;hb=691d6952114dd716ca66193a029f5e60be50888c;hp=e3d135394b9ad15bdee4451423822405ee30647a;hpb=4ae01cba319acd3519cf64dc3537cc6c4020e6cb;p=vchess.git
diff --git a/client/src/views/News.vue b/client/src/views/News.vue
index e3d13539..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.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: function() {
+ return params.devs.includes(this.st.user.id);
+ }
+ },
created: function() {
ajax(
"/news",
@@ -191,7 +195,7 @@ export default {
};
-
+
+