🗃️ Adds option for global useProxy (#486)
This commit is contained in:
@@ -446,6 +446,9 @@ export default {
|
||||
errorMsg: null,
|
||||
}),
|
||||
computed: {
|
||||
appConfig() {
|
||||
return this.$store.getters.appConfig;
|
||||
},
|
||||
/* Returns the widget type, shows error if not specified */
|
||||
widgetType() {
|
||||
if (!this.widget.type) {
|
||||
@@ -457,7 +460,7 @@ export default {
|
||||
/* Returns users specified widget options, or empty object */
|
||||
widgetOptions() {
|
||||
const options = this.widget.options || {};
|
||||
const useProxy = !!this.widget.useProxy;
|
||||
const useProxy = this.appConfig.widgetsAlwaysUseProxy || !!this.widget.useProxy;
|
||||
const updateInterval = this.widget.updateInterval !== undefined
|
||||
? this.widget.updateInterval : null;
|
||||
return { useProxy, updateInterval, ...options };
|
||||
|
||||
@@ -209,6 +209,12 @@
|
||||
"default": false,
|
||||
"description": "If set to true, will keep apps opened in the workspace open in the background. Useful for switching between sites, but comes at the cost of performance"
|
||||
},
|
||||
"widgetsAlwaysUseProxy": {
|
||||
"title": "Widgets always use proxy",
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "If set to true, the useProxy option for widgets will always be applied without having to specify it for each widget"
|
||||
},
|
||||
"webSearch": {
|
||||
"title": "Web Search",
|
||||
"type": "object",
|
||||
|
||||
Reference in New Issue
Block a user