mirror of
https://github.com/Ylianst/MeshCommander
synced 2025-12-05 21:53:19 +00:00
Disabled remove all alarms button when no alarms.
This commit is contained in:
@@ -11708,7 +11708,7 @@
|
||||
x += '<div style=padding-left:15px><br><i>' + "No wake alarms registered." + '</i></div><br>';
|
||||
}
|
||||
var y = '<div> ' + AddRefreshButton('PullAlarms()');
|
||||
if (xxAccountAdminName) { y += AddButton("Remove all alarms", 'RemoveAllAlarms()') + AddButton("Add", 'showAddAlarm()'); }
|
||||
if (xxAccountAdminName) { y += AddButton2("Remove all alarms", 'RemoveAllAlarms()', xxAlarms ? '' : 'disabled') + AddButton("Add", 'showAddAlarm()'); }
|
||||
x += '<br><td class=r1>' + TableEnd(y + '</div>');
|
||||
QH('id_TableAlarm', x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user