Browse Source

fix: Fixed issue with search data and sort list menu

pull/6539/head
Muhammed Mustafa 1 year ago
parent
commit
e97202ad55
  1. 7
      packages/nc-gui/components/smartsheet/toolbar/SearchData.vue
  2. 9
      packages/nc-gui/components/smartsheet/toolbar/SortListMenu.vue

7
packages/nc-gui/components/smartsheet/toolbar/SearchData.vue

@ -100,7 +100,7 @@ watch(columns, () => {
</div>
<div
:class="{
'hidden group-hover:block': !isMobileMode,
'invisible group-hover:visible': !isMobileMode,
'text-gray-700': isMobileMode,
}"
>
@ -115,6 +115,7 @@ watch(columns, () => {
</div>
<a-select
v-model:value="search.field"
v-e="['c:search:field:select:open']"
:open="isDropdownOpen"
size="small"
:dropdown-match-select-width="false"
@ -122,7 +123,7 @@ watch(columns, () => {
class="py-1 !absolute top-0 left-0 w-full h-full z-10 text-xs opacity-0"
@change="onPressEnter"
>
<a-select-option v-for="op of columns" :key="op.value" :value="op.value">
<a-select-option v-for="op of columns" :key="op.value" v-e="['c:search:field:select']" :value="op.value">
<div class="text-[0.75rem] flex items-center -ml-1 gap-2">
<SmartsheetHeaderIcon class="text-sm" :column="op.column" />
{{ op.label }}
@ -135,7 +136,7 @@ watch(columns, () => {
v-model:value="search.query"
size="small"
class="text-xs w-40"
:placeholder="`${$t('general.searchIn')} ${columns?.find((column) => column.value === search.field)?.label}`"
:placeholder="`${$t('general.searchIn')} ${displayColumnLabel}`"
:bordered="false"
data-testid="search-data-input"
@press-enter="onPressEnter"

9
packages/nc-gui/components/smartsheet/toolbar/SortListMenu.vue

@ -183,14 +183,7 @@ watch(open, () => {
:trigger="['click']"
overlay-class-name="nc-toolbar-dropdown"
>
<NcButton
v-e="['c:sort:add']"
class="!text-brand-500"
type="text"
size="small"
@click.stop="showCreateSort = true"
@click.stop="deleteSort(sort, i)"
>
<NcButton v-e="['c:sort:add']" class="!text-brand-500" type="text" size="small" @click.stop="showCreateSort = true">
<div class="flex gap-1 items-center">
<component :is="iconMap.plus" />
<!-- Add Sort Option -->

Loading…
Cancel
Save