Browse Source

fic(nc-gui): Error when adding sort nocodb/nocodb#7460

pull/7466/head
Ramesh Mane 10 months ago
parent
commit
7c662c19aa
  1. 4
      packages/nc-gui/components/smartsheet/toolbar/SortListMenu.vue

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

@ -132,7 +132,7 @@ onMounted(() => {
>
<div
class="sort-grid max-h-120 nc-scrollbar-md"
:class="{ 'pb-3 pr-3.5': sorts?.length, '!pb-0': !availableColumns.length }"
:class="{ 'pr-3.5': sorts?.length }"
@click.stop
>
<template v-for="(sort, i) of sorts" :key="i">
@ -187,6 +187,7 @@ onMounted(() => {
v-if="availableColumns.length"
v-model:visible="showCreateSort"
:trigger="['click']"
class="mt-3"
overlay-class-name="nc-toolbar-dropdown"
>
<template v-if="isEeUI && !isPublic">
@ -204,6 +205,7 @@ onMounted(() => {
{{ $t('activity.addSort') }}
</div>
</NcButton>
<span v-else></span>
</template>
<template v-else>
<NcButton v-e="['c:sort:add']" class="!text-brand-500" type="text" size="small" @click.stop="showCreateSort = true">

Loading…
Cancel
Save