Restyle Timeseries: Add 18n and enable snapshots for ntopng > m

This commit is contained in:
uccidibuti 2022-09-12 12:16:47 +02:00
parent 28c0c0f80c
commit eccd6f437a
5 changed files with 55 additions and 25 deletions

View file

@ -1,12 +1,13 @@
<div id="vue-app">
<page-stats :csrf="csrf">
<page-stats :csrf="csrf" :enable_snapshots="is_ntop_enterprise_m">
</page-stats>
</div>
<script type="application/javascript">
let pageCsrf = "{{ ntop.getRandomCSRFValue() }}";
function start_vue() {
function start_vue() {
let is_ntop_enterprise_m = '{* ntop.isEnterpriseM() *}' == 'true';
let vue_options = {
components: {
'page-stats': ntopVue.PageStats,
@ -19,6 +20,7 @@
data() {
return {
csrf: pageCsrf,
is_ntop_enterprise_m,
};
},
methods: {},