Update save field send wiki
This commit is contained in:
parent
2ad1ee195f
commit
ab1ff30f12
|
|
@ -81,5 +81,5 @@ export default class Station extends BaseModel {
|
|||
declare updatedAt: DateTime
|
||||
|
||||
@column()
|
||||
declare sendWiki: boolean
|
||||
declare send_wiki: boolean
|
||||
}
|
||||
|
|
|
|||
|
|
@ -549,7 +549,7 @@ export class WebSocketIo {
|
|||
const stationId = data.stationId || ''
|
||||
const station = await Station.find(stationId)
|
||||
// Check station sendWiki flag
|
||||
if (!station || !station?.sendWiki) return
|
||||
if (!station || !station?.send_wiki) return
|
||||
console.log('[DPELP] Received run all dpelp')
|
||||
|
||||
const results = await this.waitUntilAllReady(lineIds)
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ const StationSetting = ({
|
|||
setLines([lineInit]);
|
||||
setOpenConfirm(false);
|
||||
form.reset();
|
||||
form.setFieldValue("send_wiki", true);
|
||||
}
|
||||
}, [isOpen]);
|
||||
|
||||
|
|
|
|||
|
|
@ -653,7 +653,7 @@ const ModalTerminal = ({
|
|||
{findDataShowVersion()
|
||||
? findDataShowVersion()?.MEMORY +
|
||||
(findDataShowVersion()?.USB_FLASH
|
||||
? "/" + findDataShowVersion()?.USB_FLASH
|
||||
? " - " + findDataShowVersion()?.USB_FLASH
|
||||
: "")
|
||||
: ""}
|
||||
</Text>
|
||||
|
|
|
|||
Loading…
Reference in New Issue