Handling local-mode moved to connect tab radio boxes
This commit is contained in:
parent
620f995840
commit
6067f5f7d0
2 changed files with 56 additions and 35 deletions
|
|
@ -1,13 +1,11 @@
|
|||
<template>
|
||||
<div id="appSettings">
|
||||
|
||||
<p><label><input v-model="localMode" class="uk-checkbox" type="checkbox"><b> Local mode</b></label></p>
|
||||
|
||||
<p><label v-bind:class="disableIfLocalMode"><input v-model="disableStream" class="uk-checkbox" type="checkbox"> Disable live stream</label></p>
|
||||
<p><label><input v-model="disableStream" class="uk-checkbox" type="checkbox"> Disable live stream</label></p>
|
||||
|
||||
<div class="uk-child-width-1-2" uk-grid>
|
||||
<p><label v-bind:class="[{'uk-disabled': !this.$store.getters.ready}, disableIfLocalMode]"><input v-model="autoGpuPreview" class="uk-checkbox" type="checkbox"> GPU preview</label></p>
|
||||
<p><label v-bind:class="[{'uk-disabled': !this.$store.getters.ready}, disableIfLocalMode]"><input v-model="trackWindow" class="uk-checkbox" type="checkbox"> Track window</label></p>
|
||||
<p><label v-bind:class="[{'uk-disabled': !this.$store.getters.ready}]"><input v-model="autoGpuPreview" class="uk-checkbox" type="checkbox"> GPU preview</label></p>
|
||||
<p><label v-bind:class="[{'uk-disabled': !this.$store.getters.ready}]"><input v-model="trackWindow" class="uk-checkbox" type="checkbox"> Track window</label></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
@ -20,23 +18,10 @@ export default {
|
|||
name: 'appSettings',
|
||||
|
||||
data: function () {
|
||||
return {
|
||||
isLocalMode: false
|
||||
}
|
||||
return {}
|
||||
},
|
||||
|
||||
computed: {
|
||||
localMode: {
|
||||
get() {
|
||||
return this.isLocalMode
|
||||
},
|
||||
set(value) {
|
||||
this.isLocalMode = value;
|
||||
this.trackWindow = value;
|
||||
this.disableStream = value;
|
||||
this.autoGpuPreview = value;
|
||||
}
|
||||
},
|
||||
|
||||
disableStream: {
|
||||
get() {
|
||||
|
|
@ -64,10 +49,6 @@ export default {
|
|||
set(value) {
|
||||
this.$store.commit("changeSetting", ['trackWindow', value]);
|
||||
}
|
||||
},
|
||||
|
||||
disableIfLocalMode: function () {
|
||||
return {'uk-disabled': this.localMode}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue