Browse Source

chore(gui-v2): lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2860/head
Pranav C 2 years ago
parent
commit
854a731273
  1. 9
      packages/nc-gui-v2/components/smartsheet-toolbar/SearchData.vue
  2. 8
      packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue
  3. 2
      packages/nc-gui-v2/components/smartsheet/Toolbar.vue
  4. 4
      packages/nc-gui-v2/composables/useViewFilters.ts

9
packages/nc-gui-v2/components/smartsheet-toolbar/SearchData.vue

@ -13,7 +13,6 @@ const columns = computed(() =>
label: c.title, label: c.title,
})), })),
) )
</script> </script>
<template> <template>
@ -28,7 +27,13 @@ const columns = computed(() =>
<div class="flex align-center relative"> <div class="flex align-center relative">
<MdiSearchIcon class="text-grey" /> <MdiSearchIcon class="text-grey" />
<MdiMenuDownIcon class="text-grey" /> <MdiMenuDownIcon class="text-grey" />
<a-select size="small" :dropdownMatchSelectWidth="false" v-model:value="search.field" :options="columns" class="!absolute top-0 left-0 w-full h-full z-10 !text-xs opacity-0"> <a-select
v-model:value="search.field"
size="small"
:dropdown-match-select-width="false"
:options="columns"
class="!absolute top-0 left-0 w-full h-full z-10 !text-xs opacity-0"
>
</a-select> </a-select>
</div> </div>
</template> </template>

8
packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue

@ -110,7 +110,13 @@ const copyLink = () => {
</a-button> </a-button>
<!-- This view is shared via a private link --> <!-- This view is shared via a private link -->
<a-modal v-model:visible="showShareModel" size="small" :title="$t('msg.info.privateLink')" :footer="null" width="min(100vw,640px)"> <a-modal
v-model:visible="showShareModel"
size="small"
:title="$t('msg.info.privateLink')"
:footer="null"
width="min(100vw,640px)"
>
<div class="share-link-box nc-share-link-box bg-primary-50"> <div class="share-link-box nc-share-link-box bg-primary-50">
<div class="flex-1 h-min text-xs">{{ sharedViewUrl }}</div> <div class="flex-1 h-min text-xs">{{ sharedViewUrl }}</div>
<!-- <v-spacer /> --> <!-- <v-spacer /> -->

2
packages/nc-gui-v2/components/smartsheet/Toolbar.vue

@ -33,6 +33,4 @@
.dot { .dot {
@apply w-[3px] h-[3px] bg-gray-300 mx-1 rounded-full; @apply w-[3px] h-[3px] bg-gray-300 mx-1 rounded-full;
}*/ }*/
</style> </style>

4
packages/nc-gui-v2/composables/useViewFilters.ts

@ -8,9 +8,8 @@ export function useViewFilters(
parentId?: string, parentId?: string,
autoApply?: ComputedRef<boolean>, autoApply?: ComputedRef<boolean>,
reloadData?: () => void, reloadData?: () => void,
shared = false shared = false,
) { ) {
// todo: update swagger // todo: update swagger
const filters = ref<(FilterType & { status?: 'update' | 'delete' | 'create'; parentId?: string })[]>([]) const filters = ref<(FilterType & { status?: 'update' | 'delete' | 'create'; parentId?: string })[]>([])
@ -45,7 +44,6 @@ export function useViewFilters(
} }
const deleteFilter = async (filter: FilterType & { status: string }, i: number) => { const deleteFilter = async (filter: FilterType & { status: string }, i: number) => {
if (shared || !isUIAllowed('filterSync')) { if (shared || !isUIAllowed('filterSync')) {
const _filters = unref(filters.value) const _filters = unref(filters.value)
_filters.splice(i, 1) _filters.splice(i, 1)

Loading…
Cancel
Save