Browse Source

fix(gui): enable filter value field in shared view

override editEnabled and isForm injection keys to true inside filter menu

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5647/head
Pranav C 1 year ago
parent
commit
260a84dcb3
  1. 5
      packages/nc-gui/components/smartsheet/toolbar/FilterInput.vue

5
packages/nc-gui/components/smartsheet/toolbar/FilterInput.vue

@ -4,6 +4,7 @@ import { storeToRefs } from 'pinia'
import {
ColumnInj,
EditModeInj,
IsFormInj,
ReadonlyInj,
computed,
isBoolean,
@ -182,6 +183,10 @@ const hasExtraPadding = $computed(() => {
isYear(column.value, abstractType))
)
})
// provide the following to override the default behavior and enable input fields like in form
provide(EditModeInj, ref(true))
provide(IsFormInj, ref(true))
</script>
<template>

Loading…
Cancel
Save