Added toggle for using extensions to send requests
This commit is contained in:
@@ -247,6 +247,7 @@ export default {
|
|||||||
enter_curl: "Enter cURL",
|
enter_curl: "Enter cURL",
|
||||||
empty: "Empty",
|
empty: "Empty",
|
||||||
extensions: "Extensions",
|
extensions: "Extensions",
|
||||||
|
extensions_use_toggle: "Use the browser extension to send requests (if present)",
|
||||||
extensions_info1: "Browser extension that simplifies access to Postwoman",
|
extensions_info1: "Browser extension that simplifies access to Postwoman",
|
||||||
extensions_info2: "Get Postwoman browser extension!",
|
extensions_info2: "Get Postwoman browser extension!",
|
||||||
installed: "Installed",
|
installed: "Installed",
|
||||||
|
|||||||
@@ -141,6 +141,20 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</pw-section>
|
</pw-section>
|
||||||
|
|
||||||
|
<pw-section class="purple" :label="$t('extensions')" ref="extensions">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<div class="flex-wrap">
|
||||||
|
<pw-toggle
|
||||||
|
:on="settings.EXTENSIONS_ENABLED"
|
||||||
|
@change="toggleSetting('EXTENSIONS_ENABLED')"
|
||||||
|
>
|
||||||
|
{{ $t("extensions_use_toggle") }}
|
||||||
|
</pw-toggle>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</pw-section>
|
||||||
<pw-section class="blue" :label="$t('proxy')" ref="proxy">
|
<pw-section class="blue" :label="$t('proxy')" ref="proxy">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@@ -323,7 +337,11 @@ export default {
|
|||||||
PROXY_URL:
|
PROXY_URL:
|
||||||
this.$store.state.postwoman.settings.PROXY_URL ||
|
this.$store.state.postwoman.settings.PROXY_URL ||
|
||||||
"https://postwoman.apollotv.xyz/",
|
"https://postwoman.apollotv.xyz/",
|
||||||
PROXY_KEY: this.$store.state.postwoman.settings.PROXY_KEY || ""
|
PROXY_KEY: this.$store.state.postwoman.settings.PROXY_KEY || "",
|
||||||
|
EXTENSIONS_ENABLED:
|
||||||
|
(typeof(this.$store.state.postwoman.settings.EXTENSIONS_ENABLED) !== 'undefined') ?
|
||||||
|
this.$store.state.postwoman.settings.EXTENSIONS_ENABLED
|
||||||
|
: true
|
||||||
},
|
},
|
||||||
|
|
||||||
doneButton: '<i class="material-icons">done</i>',
|
doneButton: '<i class="material-icons">done</i>',
|
||||||
|
|||||||
@@ -56,7 +56,13 @@ export const SETTINGS_KEYS = [
|
|||||||
* An array of properties to exclude from the URL.
|
* An array of properties to exclude from the URL.
|
||||||
* e.g. 'auth'
|
* e.g. 'auth'
|
||||||
*/
|
*/
|
||||||
"URL_EXCLUDES"
|
"URL_EXCLUDES",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A boolean value indicating whether to use the browser extensions
|
||||||
|
* to run the requests
|
||||||
|
*/
|
||||||
|
"EXTENSIONS_ENABLED"
|
||||||
];
|
];
|
||||||
|
|
||||||
export const state = () => ({
|
export const state = () => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user