mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 23:12:34 +03:00
рабочий вариант
This commit is contained in:
@@ -547,16 +547,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function udateSingleStatusOfWidget(newStatus, widgetTopic) {
|
|
||||||
for (let i = 0; i < layoutJson.length; i++) {
|
|
||||||
let topic = layoutJson[i].topic;
|
|
||||||
if (topic === widgetTopic) {
|
|
||||||
layoutJson[i].status = newStatus;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function onParced() {
|
async function onParced() {
|
||||||
if (currentPageName === "/|") {
|
if (currentPageName === "/|") {
|
||||||
clearParcedFlags();
|
clearParcedFlags();
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import App from "../App.svelte";
|
import App from "../App.svelte";
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
|
import { handle_promise } from "svelte/internal";
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
setDefaultValue();
|
setDefaultValue();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user