Refactored all forms to disable all fields without edit permission

This commit is contained in:
Thaum Rystra
2020-05-20 16:40:47 +02:00
parent 048b150c88
commit 32eb85a099
45 changed files with 455 additions and 719 deletions

View File

@@ -0,0 +1,11 @@
import createListOfProperties from '/imports/ui/properties/forms/shared/lists/createListOfProperties.js'
const saveListMixin = {
meteor: {
saveList(){
return createListOfProperties({type: 'skill', skillType: 'save'});
},
},
};
export default saveListMixin;

View File

@@ -0,0 +1,20 @@
export default {
props: {
model: {
type: Object,
default: () => ({}),
},
errors: {
type: Object,
default: () => ({}),
},
},
methods: {
change(path, value, ack){
if (!Array.isArray(path)){
path = [path];
}
this.$emit('change', {path, value, ack});
}
}
}