Push updated files

This commit is contained in:
Dmitry Yankowski
2020-02-25 11:10:40 -05:00
parent e88f98418a
commit 4867df5fe8
4 changed files with 226 additions and 284 deletions

View File

@@ -1443,12 +1443,11 @@ export default {
settings: {
SCROLL_INTO_ENABLED:
typeof this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED !==
"undefined"
typeof this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED !== "undefined"
? this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED
: true
}
};
: true,
},
}
},
watch: {
urlExcludes: {
@@ -1970,21 +1969,14 @@ export default {
behavior: "smooth",
})
},
handleUseHistory({
label,
method,
url,
path,
usesScripts,
preRequestScript
}) {
this.label = label;
this.method = method;
this.url = url;
this.path = path;
this.showPreRequestScript = usesScripts;
this.preRequestScript = preRequestScript;
this.settings.SCROLL_INTO_ENABLED && this.scrollInto("request");
handleUseHistory({ label, method, url, path, usesScripts, preRequestScript }) {
this.label = label
this.method = method
this.url = url
this.path = path
this.showPreRequestScript = usesScripts
this.preRequestScript = preRequestScript
this.settings.SCROLL_INTO_ENABLED && this.scrollInto("request")
},
getVariablesFromPreRequestScript() {
if (!this.preRequestScript) {
@@ -2019,8 +2011,8 @@ export default {
return await sendNetworkRequest(requestOptions, this.$store)
},
async sendRequest() {
this.$toast.clear();
this.settings.SCROLL_INTO_ENABLED && this.scrollInto("response");
this.$toast.clear()
this.settings.SCROLL_INTO_ENABLED && this.scrollInto("response")
if (!this.isValidURL) {
this.$toast.error(this.$t("url_invalid_format"), {