Browse Source

fix(gui-v2): view list active class

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3257/head
mertmit 2 years ago
parent
commit
05cb02cb85
  1. 10
      packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue

10
packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue

@ -180,11 +180,11 @@ function onDeleted() {
:view="view"
:on-validate="validate"
class="transition-all ease-in duration-300"
:class="[
isMarked === view.id ? 'bg-gray-200' : '',
route.params.viewTitle && route.params.viewTitle.includes(view.title) ? 'active' : '',
`nc-view-item nc-${view.type}-view-item`,
]"
:class="{
'bg-gray-100': isMarked === view.id,
'active': route.params.viewTitle && route.params.viewTitle === view.title,
[`nc-view-item nc-${view.type}-view-item`]: true,
}"
@change-view="changeView"
@open-modal="$emit('openModal', $event)"
@delete="onDelete"

Loading…
Cancel
Save