DEV: Add system test for updating color scheme of a theme (#19370)

Follow-up to 63119144ff
This commit is contained in:
Alan Guo Xiang Tan
2022-12-08 08:38:36 +08:00
committed by GitHub
parent 02bfac1538
commit c79eec7fdc
2 changed files with 35 additions and 1 deletions
@@ -173,11 +173,12 @@
{{/if}}
{{#unless this.model.component}}
<DSection @class="form-horizontal theme settings control-unit">
<DSection @class="form-horizontal theme settings control-unit theme-settings__color-scheme">
<div class="row setting">
<div class="setting-label">
{{i18n "admin.customize.theme.color_scheme"}}
</div>
<div class="setting-value">
<ColorPalettes @content={{this.colorSchemes}} @value={{this.colorSchemeId}} @icon="paint-brush" @options={{hash
filterable=true
@@ -185,6 +186,7 @@
<div class="desc">{{i18n "admin.customize.theme.color_scheme_select"}}</div>
</div>
<div class="setting-controls">
{{#if this.colorSchemeChanged}}
<DButton @action={{action "changeScheme"}} @class="ok submit-edit" @icon="check" />