@cryptotaxi247 / netdata-1 / commits / 14cf4ecdd

maintain default server when loading/saving snapshots

Costa Tsaousis (ktsaou) committed Nov 12, 2017 at 22:07 UTC 14cf4ecdd80797719b86a875e5fc03c7383d6c6b
1 file changed +4 -4
web/index.html
+4 -4
@@ -2819,6 +2819,8 @@
2819
2820 netdataShowAlarms === false;
2821 netdataRegistry = false;
2822 + netdataServer = tmpSnapshotData.server;
2823 + NETDATA.serverDefault = netdataServer;
2824
2825 document.getElementById('charts_div').innerHTML = '';
2826 document.getElementById('sidebar').innerHTML = '';
@@ -2910,6 +2912,7 @@
2912
2913 var saveData = {
2914 hostname: options.hostname,
2915 + server: NETDATA.serverDefault,
2916 version: options.data.version,
2917 after_ms: Date.now() - options.duration * 1000,
2918 before_ms: Date.now(),
@@ -3718,12 +3721,9 @@
3721 <div class="modal-content">
3722 <div class="modal-header">
3723 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
3721 - <h4 class="modal-title" id="printPreflightModalLabel">Export this dashboard?</h4>
3724 + <h4 class="modal-title" id="printPreflightModalLabel">Print this netdata dashboard</h4>
3725 </div>
3726 <div class="modal-body">
3724 - <p>
3725 - <b>Print to printer (i.e. PDF)?</b>
3726 - </p>
3727 <p>
3728 netdata dashboards cannot be captured, since we are lazy loading and hiding all but the visible charts.
3729 <br/>