Show edit only if view is editable. Rename editable to canEdit

This commit is contained in:
Andrew Henry
2018-12-12 17:17:49 -08:00
parent c0b7276787
commit d026bc2134
9 changed files with 46 additions and 12 deletions

View File

@ -33,6 +33,9 @@ export default function () {
canView: function (domainObject) {
return domainObject.type === 'layout';
},
canEdit: function (domainObject) {
return domainObject.type === 'layout';
},
view: function (domainObject) {
let component;
return {