mirror of
https://github.com/directus/directus.git
synced 2026-01-29 09:48:00 -05:00
Allow disabled list items in fields picker
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<v-list-item
|
||||
v-if="field.children === undefined"
|
||||
:disabled="field.disabled"
|
||||
@click="$emit('add', `${parent ? parent + '.' : ''}${field.field}`)"
|
||||
>
|
||||
<v-list-item-content>{{ field.name }}</v-list-item-content>
|
||||
|
||||
@@ -3,5 +3,6 @@ import { TranslateResult } from 'vue-i18n';
|
||||
export type FieldTree = {
|
||||
field: string;
|
||||
name: string | TranslateResult;
|
||||
disabled?: boolean;
|
||||
children?: FieldTree[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user