FEATURE: support SCSS in custom email style

In the CSS tab of Admin > Customize > Email Style, SCSS can now be used.
This commit is contained in:
Neil Lalonde
2019-10-23 15:41:58 -04:00
parent 0dcb4bef20
commit f061aee818
8 changed files with 59 additions and 14 deletions

View File

@ -4,6 +4,11 @@ import computed from "ember-addons/ember-computed-decorators";
export default Component.extend({
editorId: Ember.computed.reads("fieldName"),
@computed("fieldName")
currentEditorMode(fieldName) {
return fieldName === "css" ? "scss" : fieldName;
},
@computed("fieldName", "styles.html", "styles.css")
resetDisabled(fieldName) {
return (