mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Fixed script error associated with unlinking remotes.
This commit is contained in:
parent
6711162c55
commit
5c06f2a6d4
5 changed files with 10 additions and 5 deletions
|
|
@ -3157,15 +3157,13 @@ class Somfy {
|
|||
return div;
|
||||
}
|
||||
unlinkRemote(shadeId, remoteAddress) {
|
||||
let prompt = ui.promptMessage(document.getElementById('fsSomfySettings'), 'Are you sure you want to unlink this remote from the shade?', () => {
|
||||
let prompt = ui.promptMessage('Are you sure you want to unlink this remote from the shade?', () => {
|
||||
let obj = {
|
||||
shadeId: shadeId,
|
||||
remoteAddress: remoteAddress
|
||||
};
|
||||
let overlay = ui.waitMessage(prompt);
|
||||
putJSON('/unlinkRemote', obj, (err, shade) => {
|
||||
putJSONSync('/unlinkRemote', obj, (err, shade) => {
|
||||
console.log(shade);
|
||||
overlay.remove();
|
||||
prompt.remove();
|
||||
this.setLinkedRemotesList(shade);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue