Switch to semantic if checks
Should stick to semantic code here.. rather than doing the shorthand way
This commit is contained in:
@@ -489,7 +489,7 @@ export default {
|
|||||||
this.$nuxt.$loading.start()
|
this.$nuxt.$loading.start()
|
||||||
|
|
||||||
this.response = this.$t("loading")
|
this.response = this.$t("loading")
|
||||||
this.settings.SCROLL_INTO_ENABLED && this.scrollInto("response")
|
if (this.settings.SCROLL_INTO_ENABLED) this.scrollInto("response")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let headers = {}
|
let headers = {}
|
||||||
@@ -537,7 +537,7 @@ export default {
|
|||||||
this.$nuxt.$loading.start()
|
this.$nuxt.$loading.start()
|
||||||
|
|
||||||
this.schema = this.$t("loading")
|
this.schema = this.$t("loading")
|
||||||
this.settings.SCROLL_INTO_ENABLED && this.scrollInto("schema")
|
if (this.settings.SCROLL_INTO_ENABLED) this.scrollInto("schema")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const query = JSON.stringify({
|
const query = JSON.stringify({
|
||||||
|
|||||||
@@ -1976,7 +1976,7 @@ export default {
|
|||||||
this.path = path
|
this.path = path
|
||||||
this.showPreRequestScript = usesScripts
|
this.showPreRequestScript = usesScripts
|
||||||
this.preRequestScript = preRequestScript
|
this.preRequestScript = preRequestScript
|
||||||
this.settings.SCROLL_INTO_ENABLED && this.scrollInto("request")
|
if (this.settings.SCROLL_INTO_ENABLED) this.scrollInto("request")
|
||||||
},
|
},
|
||||||
getVariablesFromPreRequestScript() {
|
getVariablesFromPreRequestScript() {
|
||||||
if (!this.preRequestScript) {
|
if (!this.preRequestScript) {
|
||||||
@@ -2012,7 +2012,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async sendRequest() {
|
async sendRequest() {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
this.settings.SCROLL_INTO_ENABLED && this.scrollInto("response")
|
if (this.settings.SCROLL_INTO_ENABLED) this.scrollInto("response")
|
||||||
|
|
||||||
if (!this.isValidURL) {
|
if (!this.isValidURL) {
|
||||||
this.$toast.error(this.$t("url_invalid_format"), {
|
this.$toast.error(this.$t("url_invalid_format"), {
|
||||||
|
|||||||
Reference in New Issue
Block a user