Fix optional turn and redis settings
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
|
||||
import { ref } from 'vue';
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { Switch, FormGroup } from 'pankow';
|
||||
import AppsModel from '../../models/AppsModel.js';
|
||||
|
||||
@@ -9,7 +9,7 @@ const { app } = defineProps([ 'app' ]);
|
||||
const appsModel = AppsModel.create();
|
||||
|
||||
const hasOptionalTurn = ref(app.manifest.addons?.turn?.optional);
|
||||
const turnEnabled = ref(app.enableTurn);
|
||||
const turnEnabled = ref(false);
|
||||
const turnBusy = ref(false);
|
||||
|
||||
async function onTurnChange(value) {
|
||||
@@ -26,7 +26,7 @@ async function onTurnChange(value) {
|
||||
}
|
||||
|
||||
const hasOptionalRedis = ref(app.manifest.addons?.redis?.optional);
|
||||
const redisEnabled = ref(app.enableRedis);
|
||||
const redisEnabled = ref(false);
|
||||
const redisBusy = ref(false);
|
||||
|
||||
async function onRedisChange(value) {
|
||||
@@ -42,6 +42,11 @@ async function onRedisChange(value) {
|
||||
redisBusy.value = false;
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
turnEnabled.value = !!app.enableTurn;
|
||||
redisEnabled.value = !!app.enableRedis;
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user