Don't show delete button if no alarm is defined yet

This commit is contained in:
Hadi Nategh 2022-09-13 10:40:30 +02:00
parent d8d8429622
commit 06e99c1e7b

View File

@ -37,7 +37,7 @@
<menulist> <menulist>
<menupopup type="select-account" id="${row}[owner]" readonly="true"/> <menupopup type="select-account" id="${row}[owner]" readonly="true"/>
</menulist> </menulist>
<button align="left" statustext="Delete this alarm" label="Delete" id="delete_alarm[$row_cont[id]]" onclick="et2_dialog.confirm(widget,'Delete this alarm','Delete')" image="delete"/> <button align="left" disabled="!$row_cont[time]" statustext="Delete this alarm" label="Delete" id="delete_alarm[$row_cont[id]]" onclick="et2_dialog.confirm(widget,'Delete this alarm','Delete')" image="delete"/>
</row> </row>
</rows> </rows>
</grid> </grid>