Toggle-Buttons for Component Remote Control (#677) (#778)

* Toggle-Buttons for Component Remote Control (#677)

* Update remote.js

* Handle Component Updates individually

* Avoid unnecessary updates

Co-authored-by: brindosch <edeltraud70@gmx.de>
This commit is contained in:
LordGrey
2020-05-12 19:56:06 +02:00
committed by GitHub
parent 9e149308f4
commit 9472860868
7 changed files with 120 additions and 28 deletions

View File

@@ -221,7 +221,7 @@ $(document).ready(function () {
}
});
// notify the update
$(window.hyperion).trigger("components-updated");
$(window.hyperion).trigger("components-updated", event.response.data);
});
$(window.hyperion).on("cmd-instance-update", function (event) {
@@ -307,4 +307,4 @@ $("#btn_darkmode").off().on("click",function(e){
location.reload();
}
});
});