mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
Update NsPanelTs.ts
This commit is contained in:
@@ -5921,9 +5921,13 @@ function HandleButtonEvent(words: any): void {
|
|||||||
let buttonAction = words[3];
|
let buttonAction = words[3];
|
||||||
let pageItemID: string = '';
|
let pageItemID: string = '';
|
||||||
|
|
||||||
if (!isNaN(id)) {pageItemID = activePage.items[id].id};
|
if (!isNaN(id)) {
|
||||||
|
pageItemID = activePage.items[id].id;
|
||||||
|
log('HandleButtonEvent activePage: ' + activePage.items.length + ' id: ' + id + ' tempid: ' + tempid + ' pageItemId: ' + pageItemID);
|
||||||
|
id = pageItemID
|
||||||
|
};
|
||||||
|
|
||||||
log('HandleButtonEvent activePage: '+ activePage.items.length + ' id: ' + id + ' tempid: ' + tempid + ' pageItemId: ' + pageItemID);
|
|
||||||
|
|
||||||
if (Debug) {
|
if (Debug) {
|
||||||
log('HandleButtonEvent übergebene Werte ' + words[0] + ' - ' + words[1] + ' - ' + words[2] + ' - ' + words[3] + ' - ' + words[4] + ' - PageId: ' + pageId, 'info');
|
log('HandleButtonEvent übergebene Werte ' + words[0] + ' - ' + words[1] + ' - ' + words[2] + ' - ' + words[3] + ' - ' + words[4] + ' - PageId: ' + pageId, 'info');
|
||||||
|
|||||||
Reference in New Issue
Block a user