diff --git a/v1/js/settings.js b/v1/js/settings.js index a78345f..4436c1b 100644 --- a/v1/js/settings.js +++ b/v1/js/settings.js @@ -292,12 +292,12 @@ document.addEventListener('alpine:init', () => { this.selectedStopBit = item; }, openModalEdit(item) { - // tcp server this.selectedJenis = { idJenis: item.idJenis, namaJenis: item.namaJenis, }, - this.port = item.port + this.port = item.port + this.server = item.server this.selectedInterface = { idInterface: item.idInterface, namaInterface: item.namaInterface @@ -306,8 +306,20 @@ document.addEventListener('alpine:init', () => { idInstrument: item.idInstrument, namaInstrument: item.namaInstrument } - // tcp client - + this.speed = item.speed + this.selectedParity = { + idParity: item.idParity, + namaParity: item.namaParity + }, + this.selectedDataBit = { + idDataBit: item.idDataBit, + namaDataBit: item.namaDataBit + }, + this.selectedStopBit = { + idStopBit: item.idStopBit, + namaStopBit: item.namaStopBit + }, + this.showDialogEdit = !this.showDialogEdit; }, closeDialogEdit() { diff --git a/v1/settings.html b/v1/settings.html index 6ae2f82..4eb9eb4 100644 --- a/v1/settings.html +++ b/v1/settings.html @@ -731,7 +731,7 @@