mirror of
https://github.com/beestat/app.git
synced 2025-07-09 03:04:07 -04:00
Hiding card menus for #261
This commit is contained in:
parent
f68f97d6ce
commit
8ee82d4bd0
@ -251,6 +251,7 @@ beestat.component.card.runtime_sensor_detail.prototype.decorate_top_right_ = fun
|
||||
|
||||
var menu = (new beestat.component.menu()).render(parent);
|
||||
|
||||
if (this.has_data_() === true) {
|
||||
menu.add_menu_item(new beestat.component.menu_item()
|
||||
.set_text('Past 1 Day')
|
||||
.set_icon('numeric_1_box')
|
||||
@ -319,6 +320,7 @@ beestat.component.card.runtime_sensor_detail.prototype.decorate_top_right_ = fun
|
||||
.set_callback(function() {
|
||||
self.charts_.temperature.reset_zoom();
|
||||
}));
|
||||
}
|
||||
|
||||
menu.add_menu_item(new beestat.component.menu_item()
|
||||
.set_text('Help')
|
||||
|
@ -507,6 +507,7 @@ beestat.component.card.runtime_thermostat_summary.prototype.decorate_top_right_
|
||||
|
||||
var menu = (new beestat.component.menu()).render(parent);
|
||||
|
||||
if (beestat.thermostat.get_sync_progress(this.thermostat_id_) !== null) {
|
||||
menu.add_menu_item(new beestat.component.menu_item()
|
||||
.set_text('Past 3 Months')
|
||||
.set_icon('calendar_range')
|
||||
@ -594,6 +595,7 @@ beestat.component.card.runtime_thermostat_summary.prototype.decorate_top_right_
|
||||
beestat.setting('runtime_thermostat_summary_gap_fill', true);
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
menu.add_menu_item(new beestat.component.menu_item()
|
||||
.set_text('Help')
|
||||
|
Loading…
x
Reference in New Issue
Block a user