This commit is contained in:
Sergey Yarkov 2023-11-14 16:24:42 +03:00
parent e2ad549ed1
commit 7779ce96e5
3 changed files with 129 additions and 130 deletions

View File

@ -45,7 +45,6 @@ export const appController = {
`, `,
[mb_tcp_ip, mb_tcp_port, payload.log_interval_ms], [mb_tcp_ip, mb_tcp_port, payload.log_interval_ms],
); );
return res.status(200).json({ message: "Config Updated." }); return res.status(200).json({ message: "Config Updated." });
} }

BIN
data.db

Binary file not shown.

View File

@ -70,7 +70,7 @@
class="flex flex-col space-y-2" class="flex flex-col space-y-2"
> >
<div> <div>
<label :for="$id('id')"><span class="text-red-500">*</span>Slave ID:</label> <label :for="$id('id')"><span class="text-red-500">*</span>ID устройства:</label>
<input <input
x-model.number="data.id" x-model.number="data.id"
:id="$id('id')" :id="$id('id')"
@ -305,8 +305,8 @@
<!-- Remove display value --> <!-- Remove display value -->
<button <button
@click="$dispatch('dialog', { @click="$dispatch('dialog', {
title: 'Remove display value', title: 'Удалить отображаемое значение',
body: `Remove display value ${value.name}?`, body: `Удалить ${value.name}?`,
isOpen: true, isOpen: true,
onConfirm: async () => await removeDisplayValue(value.id) onConfirm: async () => await removeDisplayValue(value.id)
});" });"