0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed email cards missing an edit icon in the toolbar

no issue

- email cards a block cards so have a distinct edit mode, that type of card should always have an edit icon in the toolbar for consistency and ease of use when the double-click or cmd+enter shortcuts aren't known
This commit is contained in:
Kevin Ansfield 2020-12-03 10:26:21 +00:00
parent 70b34432c8
commit d5d0eafb47

View file

@ -27,6 +27,23 @@ export default Component.extend({
return formatTextReplacementHtml(this.payload.html); return formatTextReplacementHtml(this.payload.html);
}), }),
toolbar: computed('isEditing', function () {
if (this.isEditing) {
return false;
}
return {
items: [{
buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit',
iconClass: 'fill-white',
title: 'Edit',
text: '',
action: run.bind(this, this.editCard)
}]
};
}),
init() { init() {
this._super(...arguments); this._super(...arguments);
this.registerComponent(this); this.registerComponent(this);