DEV: Show warning in admin UI for core SCSS color vars (#12984)

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
Penar Musaraj
2021-05-11 09:01:06 -04:00
committed by GitHub
parent 06f47684f2
commit e8f6e00dc9
5 changed files with 71 additions and 4 deletions

View File

@ -6,6 +6,8 @@ import { isDocumentRTL } from "discourse/lib/text-direction";
import { next } from "@ember/runloop";
export default Component.extend({
warning: null,
@discourseComputed("theme.targets", "onlyOverridden", "showAdvanced")
visibleTargets(targets, onlyOverridden, showAdvanced) {
return targets.filter((target) => {
@ -124,5 +126,9 @@ export default Component.extend({
save() {
this.attrs.save();
},
setWarning(message) {
this.set("warning", message);
},
},
});