mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Restyle Timeseries: Add 18n and enable snapshots for ntopng > m
This commit is contained in:
parent
28c0c0f80c
commit
eccd6f437a
5 changed files with 55 additions and 25 deletions
|
|
@ -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: {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue