FIX: Correct issues in admin-styles-editor (#20435) (#20437)

The save action clashed with the save component argument

Followup to a433b30650
This commit is contained in:
David Taylor 2023-02-24 09:34:56 +00:00 committed by GitHub
parent ba5e0924db
commit 4cadad9a53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View File

@ -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

View File

@ -29,7 +29,7 @@
@content={{this.editorContents}}
@mode={{this.currentEditorMode}}
@editorId={{this.editorId}}
@save={{action "save"}}
@save={{@save}}
/>
<div class="admin-footer">

View File

@ -48,9 +48,4 @@ export default class EmailStylesEditor extends Component {
},
});
}
@action
save() {
this.attrs.save();
}
}