Skip to content

Commit

Permalink
Move label field back and don't open dropdown on quick menu open
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackshadow8910 committed Jan 13, 2025
1 parent 2859ce5 commit 026fbae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
22 changes: 11 additions & 11 deletions frontend/components/Item/CreateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
<template #title> {{ $t("components.item.create_modal.title") }} </template>
<form @submit.prevent="create()">
<LocationSelector v-model="form.location" />
<FormMultiselect v-model="form.labels" :label="$t('global.labels')" :items="labels ?? []" />
<FormTextField
ref="nameInput"
v-model="form.name"
:trigger-focus="focused"
:autofocus="true"
:label="$t('components.item.create_modal.item_name')"
:max-length="255"
:min-length="1"
ref="nameInput"
v-model="form.name"
:trigger-focus="focused"
:autofocus="true"
:label="$t('components.item.create_modal.item_name')"
:max-length="255"
:min-length="1"
/>
<FormTextArea
v-model="form.description"
:label="$t('components.item.create_modal.item_description')"
:max-length="1000"
v-model="form.description"
:label="$t('components.item.create_modal.item_description')"
:max-length="1000"
/>
<FormMultiselect v-model="form.labels" :label="$t('global.labels')" :items="labels ?? []" />

<div class="modal-action mb-6">
<div>
Expand Down
5 changes: 2 additions & 3 deletions frontend/components/global/QuickMenu/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@
unrefElement(inputBoxButton).click();
};
watch(inputBoxFocused, () => {
if (inputBoxFocused.value) revealActions();
else inputValue.value = "";
watch(inputBoxFocused, (val) => {
if (!val) inputValue.value = "";
});
watch(inputValue, (val, oldVal) => {
Expand Down

0 comments on commit 026fbae

Please sign in to comment.