Added UI controls to enable ImJoy and gallery
There are now tick boxes in "features" settings to enable/disable ImJoy and the gallery. These persist in local storage.
This commit is contained in:
parent
dac1c9a748
commit
6a353ccbd3
3 changed files with 133 additions and 81 deletions
|
|
@ -39,7 +39,7 @@ const moduleImjoy = {
|
|||
},
|
||||
/**
|
||||
* Set a parameter on the tab with a given id
|
||||
*
|
||||
*
|
||||
* Payload should contain:
|
||||
* tab: ID of the tab to modify (not window_id)
|
||||
* key: name of the property to add/change
|
||||
|
|
@ -87,6 +87,8 @@ export default new Vuex.Store({
|
|||
autoGpuPreview: false,
|
||||
trackWindow: true,
|
||||
IHIEnabled: false,
|
||||
imjoyEnabled: false,
|
||||
galleryEnabled: true,
|
||||
appTheme: "system",
|
||||
activeStreams: {}
|
||||
},
|
||||
|
|
@ -113,6 +115,12 @@ export default new Vuex.Store({
|
|||
changeIHIEnabled(state, enabled) {
|
||||
state.IHIEnabled = enabled;
|
||||
},
|
||||
changeImjoyEnabled(state, enabled) {
|
||||
state.imjoyEnabled = enabled;
|
||||
},
|
||||
changeGalleryEnabled(state, enabled) {
|
||||
state.galleryEnabled = enabled;
|
||||
},
|
||||
resetState(state) {
|
||||
state.waiting = false;
|
||||
state.available = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue