mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
The save action clashed with the save component argument
Followup to a433b30650
This commit is contained in:
parent
ba5e0924db
commit
4cadad9a53
@ -200,7 +200,7 @@ export default class AceEditor extends Component {
|
||||
|
||||
this._editor.getSession().setAnnotations(warnings);
|
||||
|
||||
this.setWarning(
|
||||
this.setWarning?.(
|
||||
warnings.length
|
||||
? I18n.t("admin.customize.theme.scss_color_variables_warning")
|
||||
: false
|
||||
|
@ -29,7 +29,7 @@
|
||||
@content={{this.editorContents}}
|
||||
@mode={{this.currentEditorMode}}
|
||||
@editorId={{this.editorId}}
|
||||
@save={{action "save"}}
|
||||
@save={{@save}}
|
||||
/>
|
||||
|
||||
<div class="admin-footer">
|
||||
|
@ -48,9 +48,4 @@ export default class EmailStylesEditor extends Component {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@action
|
||||
save() {
|
||||
this.attrs.save();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user