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

Removed edit option from toolbar

https://github.com/TryGhost/Team/issues/1249

We have no floating settings now so we can remove the menu item and
display the toolbar always when the card is selected
This commit is contained in:
Fabien egg O'Carroll 2021-12-14 16:32:39 +02:00
parent 1338ddd12b
commit 7d7d856e77

View file

@ -30,9 +30,6 @@ export default class KoenigCardBeforeAfterComponent extends Component {
} }
get toolbar() { get toolbar() {
if (this.args.isEditing) {
return false;
}
let cardWidth = this.args.payload.cardWidth; let cardWidth = this.args.payload.cardWidth;
let orientation = this.args.payload.orientation; let orientation = this.args.payload.orientation;
@ -61,13 +58,6 @@ export default class KoenigCardBeforeAfterComponent extends Component {
action: run.bind(this, this.setLayoutFull) action: run.bind(this, this.setLayoutFull)
}, { }, {
divider: true divider: true
}, {
buttonClass: 'fw4 flex items-center white',
icon: 'koenig/kg-edit',
iconClass: 'fill-white',
title: 'Edit',
text: '',
action: run.bind(this, this.args.editCard)
}] }]
}; };
} }