Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Merge branch 'master' into feature/fast-url

Liyas Thomas714873811271
diff --cc pages/index.vue
index 9b4d00666,de7536cd2..a037646f0
--- a/pages/index.vue
+++ b/pages/index.vue
@@@ -184,31 -182,42 +184,32 @@@
id="url"
name="url"
type="url"
+ v-model="uri"
+ spellcheck="false"
- v-model="url"
- />
- </li>
- <li>
- <label for="path">{{ $t("path") }}</label>
- <input
- @keyup.enter="isValidURL ? sendRequest() : null"
- id="path"
- name="path"
- v-model="path"
- spellcheck="false"
- @input="pathInputHandler"
- />
- </li>
- <li>
- <label for="label">{{ $t("label") }}</label>
- <input
- id="label"
- name="label"
- type="text"
- v-model="label"
- spellcheck="false"
- :placeholder="$t('optional')"
/>
</li>
- <li>
- <label class="hide-on-small-screen" for="send">&nbsp;</label>
- <button :disabled="!isValidURL" @click="sendRequest" id="send" ref="sendButton">
- {{ $t("send") }}
- <span>
- <i class="material-icons">send</i>
- </span>
- </button>
- </li>
+ <div>
+ <li>
+ <label class="hide-on-small-screen" for="send">&nbsp;</label>
+ <button :disabled="!isValidURL" @click="sendRequest" id="send" ref="sendButton">
+ {{ $t("send") }}
+ <span>
+ <i class="material-icons">send</i>
+ </span>
+ </button>
+ </li>
+ </div>
</ul>
+ <div class="blue">
+ <label for="label">{{ $t("label") }}</label>
+ <input
+ id="label"
+ name="label"
+ type="text"
+ v-model="label"
+ :placeholder="$t('optional')"
+ />
+ </div>
<div class="blue" label="Request Body" v-if="['POST', 'PUT', 'PATCH'].includes(method)">
<ul>
<li>
@@@ -2015,7 -2012,8 +2023,7 @@@ export default
},
async sendRequest() {
this.$toast.clear()
- this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED && this.scrollInto("response")
+ if (this.settings.SCROLL_INTO_ENABLED) this.scrollInto("response")
-
if (!this.isValidURL) {
this.$toast.error(this.$t("url_invalid_format"), {
icon: "error",