/ The contentitems button will not be shown to non-designer users (e.g. admins)
// In order to manage all categories and references, we override
// the showCondition for the contentitems button here.
export default (contentType, prefill = {}) => {
return {
toolbar: {
groups: [{
buttons: [
{
command: {
action: "new",
contentType: contentType,
prefill: prefill
}
},
{
command: {
action: "contentitems",
contentType: contentType
},
showCondition: "true"
}
]
}]
},
settings: { hover:"left" }
};
}