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
infoMsg: ""
};
},
+ computed: {
+ devTeam: function() {
+ return params.devs.includes(this.st.user.id);
+ }
+ },
created: function() {
ajax(
"/news",