Report driver status to WebUI

This commit is contained in:
Yukino Song
2024-08-18 08:48:18 +08:00
parent 6fa277ec0b
commit 833c902a56
6 changed files with 29 additions and 18 deletions

View File

@@ -53,6 +53,7 @@
v-if="currentTab === 'av'"
:config="config"
:platform="platform"
:vdisplay="vdisplayStatus"
>
</audio-video>
@@ -131,6 +132,7 @@
restarted: false,
config: null,
currentTab: "general",
vdisplayStatus: false,
global_prep_cmd: [],
tabs: [ // TODO: Move the options to each Component instead, encapsulate.
{
@@ -309,6 +311,9 @@
delete this.config.status;
delete this.config.version;
this.vdisplayStatus = this.config.vdisplayStatus === 'true';
delete this.config.vdisplayStatus;
// TODO: let each tab's Component handle it's own data instead of doing it here
// Populate default values from tabs options