Added stream disable to settings

This commit is contained in:
Joel Collins 2019-02-15 11:33:12 +00:00
parent ebb682976c
commit 0d55838b86
4 changed files with 42 additions and 8 deletions

View file

@ -1,8 +1,12 @@
<template>
<div id="paneSettings">
<h3>Settings</h3>
<div class="uk-placeholder uk-text-center">Global settings coming soon...</div>
</div>
<div class="uk-child-width-1-2" uk-grid>
<p><label><input v-model="disableStream" class="uk-checkbox" type="checkbox"> Disable stream</label></p>
<p><label><input v-model="autoGpuPreview" class="uk-checkbox" type="checkbox"> GPU preview</label></p>
</div>
</div>
</template>
@ -11,6 +15,26 @@
// Export main app
export default {
name: 'paneSettings',
computed: {
disableStream: {
get() {
return this.$store.state.settings.disableStream;
},
set(value) {
this.$store.commit("changeSetting", ['disableStream', value]);
}
},
autoGpuPreview: {
get() {
return this.$store.state.settings.autoGpuPreview;
},
set(value) {
this.$store.commit("changeSetting", ['autoGpuPreview', value]);
}
}
}
}
</script>