mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Resolve lintw arnings (#14555)
This commit is contained in:
@@ -45,7 +45,7 @@ import {
|
||||
toInputObjectType,
|
||||
} from 'graphql-compose';
|
||||
import { Knex } from 'knex';
|
||||
import { flatten, get, isObject, mapKeys, merge, omit, pick, set, transform, uniq } from 'lodash';
|
||||
import { flatten, get, mapKeys, merge, omit, pick, set, transform, uniq } from 'lodash';
|
||||
import ms from 'ms';
|
||||
import { clearSystemCache, getCache } from '../../cache';
|
||||
import { DEFAULT_AUTH_PROVIDER } from '../../constants';
|
||||
|
||||
@@ -80,7 +80,6 @@ import { readableMimeType } from '@/utils/readable-mime-type';
|
||||
import DrawerItem from '@/views/private/components/drawer-item';
|
||||
import FileLightbox from '@/views/private/components/file-lightbox';
|
||||
import ImageEditor from '@/views/private/components/image-editor';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { computed, ref, toRefs } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ import adjustFieldsForDisplays from '@/utils/adjust-fields-for-displays';
|
||||
import { hideDragImage } from '@/utils/hide-drag-image';
|
||||
import DrawerCollection from '@/views/private/components/drawer-collection';
|
||||
import DrawerItem from '@/views/private/components/drawer-item';
|
||||
import { Filter, FieldFilter } from '@directus/shared/types';
|
||||
import { Filter } from '@directus/shared/types';
|
||||
import { getFieldsFromTemplate } from '@directus/shared/utils';
|
||||
import { clamp, get } from 'lodash';
|
||||
import { computed, ref, toRefs, unref } from 'vue';
|
||||
|
||||
@@ -39,7 +39,14 @@
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
|
||||
<v-button v-tooltip.bottom="t('invite_users')" rounded icon secondary @click="userInviteModalActive = true">
|
||||
<v-button
|
||||
v-if="canInviteUsers"
|
||||
v-tooltip.bottom="t('invite_users')"
|
||||
rounded
|
||||
icon
|
||||
secondary
|
||||
@click="userInviteModalActive = true"
|
||||
>
|
||||
<v-icon name="person_add" />
|
||||
</v-button>
|
||||
|
||||
@@ -207,6 +214,7 @@ export default defineComponent({
|
||||
confirmLeave,
|
||||
leaveTo,
|
||||
discardAndLeave,
|
||||
canInviteUsers,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,26 +13,19 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useFieldsStore } from '@/stores';
|
||||
import { Filter } from '@directus/shared/types';
|
||||
import { computed } from 'vue';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
showHeader?: boolean;
|
||||
displayTemplate?: string;
|
||||
sortField?: string;
|
||||
sortDirection?: string;
|
||||
collection: string;
|
||||
limit?: number;
|
||||
filter?: Filter;
|
||||
data?: object;
|
||||
}>(),
|
||||
{
|
||||
showHeader: false,
|
||||
displayTemplate: '',
|
||||
sortDirection: 'desc',
|
||||
limit: 5,
|
||||
filter: () => ({}),
|
||||
data: () => ({}),
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user