Added toggle for enabling/disabling auto scrolling (scrollInto functionality)

This commit is contained in:
Dmitry Yankowski
2020-02-24 10:54:22 -05:00
parent 08bb47da1d
commit 0c8eea65a5
5 changed files with 33 additions and 6 deletions

View File

@@ -2085,7 +2085,8 @@ export default {
this.path = path;
this.showPreRequestScript = usesScripts;
this.preRequestScript = preRequestScript;
this.scrollInto("request");
this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED &&
this.scrollInto("request");
},
getVariablesFromPreRequestScript() {
if (!this.preRequestScript) {
@@ -2132,7 +2133,8 @@ export default {
},
async sendRequest() {
this.$toast.clear();
this.scrollInto("response");
this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED &&
this.scrollInto("response");
if (!this.isValidURL) {
this.$toast.error(this.$t("url_invalid_format"), {