Update user model metadatas configurations

This commit is contained in:
Alexandre Bodin 2019-08-06 13:40:28 +02:00
parent 0c078d0d2b
commit 8c1f25a058
2 changed files with 11 additions and 1 deletions

View File

@ -15,7 +15,7 @@ async function validateCustomConfig(model, schema) {
}).validate(model.config); }).validate(model.config);
} catch (error) { } catch (error) {
throw new Error( throw new Error(
`Invalid Model configuration for model ${model.uid} Verify your Model.config.js(on) file:\n - ${error.message}\n` `Invalid Model configuration for model ${model.uid}. Verify your {{modelName}}.config.js(on) file:\n - ${error.message}\n`
); );
} }
} }

View File

@ -5,5 +5,15 @@ module.exports = {
visible: false, visible: false,
}, },
}, },
provider: {
edit: {
visible: false,
},
},
role: {
edit: {
mainField: 'name',
},
},
}, },
}; };