-
(null)
+ const methodOptions = ref
(null)
const saveOptions = ref(null)
+ const sendOptions = ref(null)
const newSendRequest = () => {
loading.value = true
@@ -279,7 +294,7 @@ export default defineComponent({
const onSelectMethod = (method: string) => {
updateMethod(method)
// Vue-tippy has no typescript support yet
- options.value.tippy().hide()
+ methodOptions.value.tippy().hide()
}
const clearContent = () => {
@@ -369,7 +384,8 @@ export default defineComponent({
EXPERIMENTAL_URL_BAR_ENABLED: useSetting("EXPERIMENTAL_URL_BAR_ENABLED"),
// Template refs
- options,
+ methodOptions,
+ sendOptions,
saveOptions,
}
},
diff --git a/components/smart/AutoComplete.vue b/components/smart/AutoComplete.vue
index 37ff00266..2f604565c 100644
--- a/components/smart/AutoComplete.vue
+++ b/components/smart/AutoComplete.vue
@@ -3,15 +3,6 @@
.autocomplete-wrapper {
@apply relative;
- @apply flex flex-1;
+ @apply flex;
+ @apply w-full;
input:focus + ul.suggestions,
ul.suggestions:hover {
diff --git a/components/smart/UrlField.vue b/components/smart/EnvInput.vue
similarity index 94%
rename from components/smart/UrlField.vue
rename to components/smart/EnvInput.vue
index 160d63959..e24bb827d 100644
--- a/components/smart/UrlField.vue
+++ b/components/smart/EnvInput.vue
@@ -7,10 +7,15 @@
@@ -32,6 +37,14 @@ export default {
type: String,
default: "",
},
+ placeholder: {
+ type: String,
+ default: "",
+ },
+ styles: {
+ type: String,
+ default: "",
+ },
},
data() {
return {
@@ -41,7 +54,7 @@ export default {
highlight: [
{
text: /(<<\w+>>)/g,
- style: "text-white bg-accentDark rounded px-1.5 py-0.5 mx-0.5",
+ style: "text-white bg-accentDark rounded px-1 mx-0.5",
},
],
highlightEnabled: true,
@@ -396,18 +409,17 @@ export default {