mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
5
.changeset/friendly-plants-explode.md
Normal file
5
.changeset/friendly-plants-explode.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@directus/app': patch
|
||||
---
|
||||
|
||||
Prevent non-usable system collections from being selected in the relational field setup flow
|
||||
@@ -429,6 +429,20 @@ export default defineComponent({
|
||||
);
|
||||
});
|
||||
|
||||
/**
|
||||
* These are the system endpoints that don't have full/regular CRUD operations available.
|
||||
*/
|
||||
const collectionsDenyList = [
|
||||
'directus_activity',
|
||||
'directus_collections',
|
||||
'directus_fields',
|
||||
'directus_migrations',
|
||||
'directus_relations',
|
||||
'directus_revisions',
|
||||
'directus_sessions',
|
||||
'directus_settings',
|
||||
];
|
||||
|
||||
const systemCollections = computed(() => {
|
||||
return orderBy(
|
||||
collectionsStore.state.collections.filter((collection) => {
|
||||
@@ -436,7 +450,7 @@ export default defineComponent({
|
||||
}),
|
||||
['collection'],
|
||||
['asc']
|
||||
);
|
||||
).filter((collection) => collectionsDenyList.includes(collection.collection) === false);
|
||||
});
|
||||
|
||||
const junctionCollection = computed({
|
||||
|
||||
@@ -241,6 +241,20 @@ export default defineComponent({
|
||||
);
|
||||
});
|
||||
|
||||
/**
|
||||
* These are the system endpoints that don't have full/regular CRUD operations available.
|
||||
*/
|
||||
const collectionsDenyList = [
|
||||
'directus_activity',
|
||||
'directus_collections',
|
||||
'directus_fields',
|
||||
'directus_migrations',
|
||||
'directus_relations',
|
||||
'directus_revisions',
|
||||
'directus_sessions',
|
||||
'directus_settings',
|
||||
];
|
||||
|
||||
const systemCollections = computed(() => {
|
||||
return orderBy(
|
||||
collectionsStore.state.collections.filter((collection) => {
|
||||
@@ -248,7 +262,7 @@ export default defineComponent({
|
||||
}),
|
||||
['collection'],
|
||||
['asc']
|
||||
);
|
||||
).filter((collection) => collectionsDenyList.includes(collection.collection) === false);
|
||||
});
|
||||
|
||||
return { availableCollections, systemCollections };
|
||||
|
||||
@@ -330,6 +330,20 @@ export default defineComponent({
|
||||
);
|
||||
});
|
||||
|
||||
/**
|
||||
* These are the system endpoints that don't have full/regular CRUD operations available.
|
||||
*/
|
||||
const collectionsDenyList = [
|
||||
'directus_activity',
|
||||
'directus_collections',
|
||||
'directus_fields',
|
||||
'directus_migrations',
|
||||
'directus_relations',
|
||||
'directus_revisions',
|
||||
'directus_sessions',
|
||||
'directus_settings',
|
||||
];
|
||||
|
||||
const systemCollections = computed(() => {
|
||||
return orderBy(
|
||||
collectionsStore.state.collections.filter((collection) => {
|
||||
@@ -337,7 +351,7 @@ export default defineComponent({
|
||||
}),
|
||||
['collection'],
|
||||
['asc']
|
||||
);
|
||||
).filter((collection) => collectionsDenyList.includes(collection.collection) === false);
|
||||
});
|
||||
|
||||
const currentCollectionPrimaryKey = computed(() => fieldsStore.getPrimaryKeyFieldForCollection(props.collection));
|
||||
|
||||
@@ -347,6 +347,20 @@ export default defineComponent({
|
||||
);
|
||||
});
|
||||
|
||||
/**
|
||||
* These are the system endpoints that don't have full/regular CRUD operations available.
|
||||
*/
|
||||
const collectionsDenyList = [
|
||||
'directus_activity',
|
||||
'directus_collections',
|
||||
'directus_fields',
|
||||
'directus_migrations',
|
||||
'directus_relations',
|
||||
'directus_revisions',
|
||||
'directus_sessions',
|
||||
'directus_settings',
|
||||
];
|
||||
|
||||
const systemCollections = computed(() => {
|
||||
return orderBy(
|
||||
collectionsStore.state.collections.filter((collection) => {
|
||||
@@ -354,7 +368,7 @@ export default defineComponent({
|
||||
}),
|
||||
['collection'],
|
||||
['asc']
|
||||
);
|
||||
).filter((collection) => collectionsDenyList.includes(collection.collection) === false);
|
||||
});
|
||||
|
||||
const junctionCollection = computed({
|
||||
|
||||
Reference in New Issue
Block a user