Skip to content

A platform for community discussion. Free, open, simple.

FIX: Update logic for displaying admin palette warning (#34121)

Krisc30b070e729c
diff --git a/app/assets/javascripts/admin/addon/controllers/admin-customize-colors.js b/app/assets/javascripts/admin/addon/controllers/admin-customize-colors.js
index 2bd3bdc4495..98faa86ac8b 100644
--- a/app/assets/javascripts/admin/addon/controllers/admin-customize-colors.js
+++ b/app/assets/javascripts/admin/addon/controllers/admin-customize-colors.js
@@ -64,20 +64,9 @@ export default class AdminCustomizeColorsController extends Controller {
}
get changedThemePreferences() {
- // can't check against null, because the default scheme ID is null
- if (
- this._initialUserLightColorSchemeId === undefined &&
- this.defaultTheme
- ) {
- this._captureInitialState();
- }
-
- const changedColors =
- this._initialUserColorSchemeId !==
- this._initialDefaultThemeLightColorSchemeId;
const changedTheme = this.defaultTheme?.id !== currentThemeId(this.site);
- return changedColors || changedTheme;
+ return changedTheme;
}
get isUsingDarkMode() {