Skip to content

Commit edc22fc

Browse files
committed
clickable notifications from email, slack, pushover, telegram, etc now divert the user to the proper chart
1 parent 9db1f00 commit edc22fc

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

web/index.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2628,12 +2628,6 @@ <h4 class="modal-title" id="gotoServerModalLabel"><span id="gotoServerName"></sp
26282628

26292629
// index the chart in the menu/submenu
26302630
menus[charts[c].menu].submenus[charts[c].submenu].charts.push(charts[c]);
2631-
2632-
// console.log(urlOptions.chart + ' === ' + c);
2633-
if(urlOptions.chart === c) {
2634-
urlOptions.hash = '#' + NETDATA.name2id(charts[c].menu + '_' + charts[c].submenu)
2635-
// console.log('hash = ' + urlOptions.hash);
2636-
}
26372631
}
26382632

26392633
// propagate the descriptive subname given to QoS
@@ -3262,6 +3256,13 @@ <h4 class="modal-title" id="gotoServerModalLabel"><span id="gotoServerName"></sp
32623256
// check if we have to jump to a specific section
32633257
scrollToId(urlOptions.hash.replace('#',''));
32643258

3259+
if(urlOptions.chart !== null) {
3260+
NETDATA.alarms.scrollToChart(urlOptions.chart);
3261+
//urlOptions.hash = '#' + NETDATA.name2id('menu_' + charts[c].menu + '_submenu_' + charts[c].submenu);
3262+
//urlOptions.hash = '#chart_' + NETDATA.name2id(urlOptions.chart);
3263+
//console.log('hash = ' + urlOptions.hash);
3264+
}
3265+
32653266
/* activate bootstrap sidebar (affix) */
32663267
$('#sidebar').affix({
32673268
offset: {

0 commit comments

Comments
 (0)