1
0
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:
Ylian Saint-Hilaire
2022-04-18 10:39:43 -07:00
parent f22d5aa842
commit c417b43b30

View File

@@ -11708,7 +11708,7 @@
x += '<div style=padding-left:15px><br><i>' + "No wake alarms registered." + '</i></div><br>';
}
var y = '<div>&nbsp;' + 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);
}