mirror of
https://github.com/directus/directus.git
synced 2026-02-19 10:14:33 -05:00
Add support for custom component options in interfaces/displays
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import registerComponent from '@/utils/register-component/';
|
||||
import interfaces from './index';
|
||||
|
||||
// inter, cause interface is a reserved keyword in JS... :C
|
||||
interfaces.forEach((inter) => {
|
||||
registerComponent('interface-' + inter.id, inter.component);
|
||||
|
||||
if (typeof inter.options === 'function') {
|
||||
registerComponent(`interface-options-${inter.id}`, inter.options);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user