X-Git-Url: https://git.auder.net/doc/screen_ranking.png?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FNews.vue;h=664b5957bbff1e8cf22429bf5f9d63de724479f8;hb=a06fc4ba49b535ba45d70ee7401c5d2e26faefa2;hp=dd3c84ef5d3f10030b1438f176e02011a26c50bd;hpb=d85f259cd57ad8ce2e4137f2291da855a63fd53d;p=vchess.git
diff --git a/client/src/views/News.vue b/client/src/views/News.vue
index dd3c84ef..664b5957 100644
--- a/client/src/views/News.vue
+++ b/client/src/views/News.vue
@@ -17,7 +17,7 @@ main
.row
.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
button#writeNewsBtn(
- v-if="devs.includes(st.user.id)"
+ v-if="devTeam"
@click="showModalNews"
)
| {{ st.tr["Write news"] }}
@@ -27,7 +27,7 @@ main
:class="{margintop:idx>0}"
)
span.ndt {{ formatDatetime(n.added) }}
- .dev-buttons(v-if="devs.includes(st.user.id)")
+ .dev-buttons(v-if="devTeam")
button(@click="editNews(n)") {{ st.tr["Edit"] }}
button(@click="deleteNews(n)") {{ st.tr["Delete"] }}
button(@click="gotoPrevNext(n, 1)") {{ st.tr["Previous_n"] }}
@@ -43,13 +43,13 @@ main
-
+
+