minidigger / directus-conditional-fields Goto Github PK
View Code? Open in Web Editor NEWSimple Directus Extension that allows conditionally showing or hiding fields.
License: MIT License
Simple Directus Extension that allows conditionally showing or hiding fields.
License: MIT License
macOS Big Sur (M1)
Directus 9.0.0-rc.61
PG 12
Node v15.14.0
--
I've setup a very simple test of this conditional-fields extension. One toggle that should show/hide a text field. It's not working. When I'm about to update an item in the collection I get the following error immediately.
Vue warn]: Invalid prop: type check failed for prop "conditions". Expected , got Array
found in
---> <InterfaceGoConditionalFields>
<FormFieldInterface> at src/components/v-form/form-field-interface.vue
<FormField> at src/components/v-form/form-field.vue
<VForm> at src/components/v-form/v-form.vue
<PrivateView> at src/views/private/private-view.vue
<CollectionsItem> at src/modules/collections/routes/item.vue
<App> at src/app.vue
<Root>
Nothing happens with the fields when clicking the toggle. More errors:
[Vue warn]: Error in callback for watcher "$parent.$parent.$parent.values": "TypeError: Cannot read property 'forEach' of undefined"
found in
---> <InterfaceGoConditionalFields>
<FormFieldInterface> at src/components/v-form/form-field-interface.vue
<FormField> at src/components/v-form/form-field.vue
<VForm> at src/components/v-form/v-form.vue
<PrivateView> at src/views/private/private-view.vue
<CollectionsItem> at src/modules/collections/routes/item.vue
<App> at src/app.vue
<Root>
Any known issues with this extension?
There are two different versions of directus out there which are not compatible.
Is this plugin for directus 8 or 9?
When running npm install on this project I get two sever vulnerabilities for Remote Code Execution in the "pug" and the "pug-code-gen" dependencies.
https://npmjs.com/advisories/1643
https://npmjs.com/advisories/1644
This issue is resolved by updating the packages to 3.0.1 according to the links.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.