chore: improve UI flow and add i18n

This commit is contained in:
nivedin
2023-11-09 14:07:56 +05:30
committed by Andrew Bastin
parent 1896e5afe1
commit f8aeb42da5
7 changed files with 55 additions and 29 deletions

View File

@@ -2,6 +2,11 @@
<div class="flex flex-1 flex-col">
<div
class="sticky z-10 flex flex-shrink-0 items-center justify-between overflow-x-auto border-b border-dividerLight bg-primary pl-4"
:class="{
'top-upperMobileSecondaryStickyFold sm:top-upperSecondaryStickyFold':
!isCollectionProperty,
'top-propertiesPrimaryStickyFold': isCollectionProperty,
}"
>
<label class="truncate font-semibold text-secondaryLight">
{{ t("request.header_list") }}
@@ -288,9 +293,10 @@ const linewrapEnabled = ref(true)
const deletionToast = ref<{ goAway: (delay: number) => void } | null>(null)
// v-model integration with props and emit
const props = defineProps<{ modelValue: HoppRESTRequest }>()
console.log(props.modelValue)
const props = defineProps<{
modelValue: HoppRESTRequest
isCollectionProperty?: boolean
}>()
const emit = defineEmits<{
(e: "change-tab", value: RESTOptionTabs): void