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:
parent
70b34432c8
commit
d5d0eafb47
1 changed files with 17 additions and 0 deletions
|
@ -27,6 +27,23 @@ export default Component.extend({
|
|||
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() {
|
||||
this._super(...arguments);
|
||||
this.registerComponent(this);
|
||||
|
|
Loading…
Add table
Reference in a new issue