mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
gui/editors: toggle Preview/Edit button
When hitting "Preview" on a previewable section (e.g. one with markdown), the tooltip and icon of the preview-button still show "Preview". With this change, both the text and the button will be switched accordingly.
This commit is contained in:
parent
73e8c7a278
commit
9ed8f79315
3 changed files with 9 additions and 2 deletions
|
@ -39,6 +39,7 @@ export default Component.extend({
|
|||
click(e) {
|
||||
if (!_.isUndefined(this.onClick)) {
|
||||
this.onClick(e);
|
||||
this.notifyPropertyChange('calcClass');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue