Report driver status to WebUI
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -11,6 +11,7 @@ import DisplayModesSettings from "./audiovideo/DisplayModesSettings.vue";
|
||||
const props = defineProps([
|
||||
'platform',
|
||||
'config',
|
||||
'vdisplay',
|
||||
'min_fps_factor',
|
||||
])
|
||||
|
||||
@@ -95,6 +96,7 @@ const config = ref(props.config)
|
||||
<DisplayModesSettings
|
||||
:platform="platform"
|
||||
:config="config"
|
||||
:vdisplay="vdisplay"
|
||||
:min_fps_factor="min_fps_factor"
|
||||
/>
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import PlatformLayout from '../../../PlatformLayout.vue'
|
||||
const props = defineProps([
|
||||
'platform',
|
||||
'config',
|
||||
'vdisplay',
|
||||
'min_fps_factor',
|
||||
])
|
||||
|
||||
@@ -24,6 +25,9 @@ const fpsIn = ref("")
|
||||
<div class="form-text">{{ $t('config.min_fps_factor_desc') }}</div>
|
||||
</div>
|
||||
|
||||
<div class="alert" :class="[vdisplay ? 'alert-success' : 'alert-warning']">
|
||||
<label><i class="fa-solid fa-xl fa-circle-info"></i> SudoVDA Driver status: {{vdisplay && "Ready" || "Not Ready"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user