fix: replace auto complete with drop down for content-types - fixed #1704
This commit is contained in:
@@ -441,7 +441,7 @@ input[type="radio"],
|
|||||||
@apply flex-1;
|
@apply flex-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.method,
|
.drop-down-input,
|
||||||
.url-field,
|
.url-field,
|
||||||
kbd,
|
kbd,
|
||||||
select,
|
select,
|
||||||
@@ -470,9 +470,8 @@ code {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.method {
|
.drop-down-input {
|
||||||
@apply cursor-pointer;
|
@apply cursor-pointer;
|
||||||
@apply uppercase;
|
|
||||||
@apply rounded-none;
|
@apply rounded-none;
|
||||||
|
|
||||||
min-width: 128px;
|
min-width: 128px;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<v-popover>
|
<v-popover>
|
||||||
<input
|
<input
|
||||||
id="method"
|
id="method"
|
||||||
class="method"
|
class="drop-down-input"
|
||||||
v-model="method"
|
v-model="method"
|
||||||
:readonly="!customMethod"
|
:readonly="!customMethod"
|
||||||
autofocus
|
autofocus
|
||||||
@@ -85,12 +85,38 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<label for="contentType" class="text-sm">{{ $t("content_type") }}</label>
|
<label for="contentType" class="text-sm">{{ $t("content_type") }}</label>
|
||||||
<SmartAutoComplete
|
<span class="select-wrapper">
|
||||||
|
<v-popover>
|
||||||
|
<input
|
||||||
|
id="contentType"
|
||||||
|
class="drop-down-input"
|
||||||
|
v-model="contentType"
|
||||||
|
readonly
|
||||||
|
/>
|
||||||
|
<template slot="popover">
|
||||||
|
<div
|
||||||
|
v-for="(contentTypeMenuItem, index) in validContentTypes"
|
||||||
|
:key="`content-type-${index}`"
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
class="icon"
|
||||||
|
@click="
|
||||||
|
contentType = contentTypeMenuItem
|
||||||
|
"
|
||||||
|
v-close-popover
|
||||||
|
>
|
||||||
|
{{ contentTypeMenuItem }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</v-popover>
|
||||||
|
</span>
|
||||||
|
<!-- <SmartAutoComplete
|
||||||
:source="validContentTypes"
|
:source="validContentTypes"
|
||||||
:spellcheck="false"
|
:spellcheck="false"
|
||||||
v-model="contentType"
|
v-model="contentType"
|
||||||
styles="text-sm"
|
styles="text-sm"
|
||||||
/>
|
/> -->
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user