preferencesStore fix
3clyp50 committed
Jan 23, 2026 at 14:31 UTC
08e6d06241b00ef0d81b894549e95a705f6dd150
2 files changed
+4
-3
webui/components/messages/process-group/process-group-dom.js
+3
-2
@@ -1,16 +1,17 @@
1
/**
2
* Process group DOM utilities (no store/state)
3
*/
4
+import { store as preferencesStore } from "/components/sidebar/bottom/preferences/preferences-store.js";
5
6
export function applyModeSteps(detailMode, showUtils) {
7
const mode =
8
detailMode ||
8
- window.Alpine?.store("preferences")?.detailMode ||
9
+ preferencesStore.detailMode ||
10
"current";
11
const showUtilsFlag =
12
typeof showUtils === "boolean"
13
? showUtils
13
- : window.Alpine?.store("preferences")?.showUtils || false;
14
+ : preferencesStore.showUtils || false;
15
16
const chatHistory = document.getElementById("chat-history");
17
if (!chatHistory) return;
webui/js/messages.js
+1
-1
@@ -921,7 +921,7 @@ export function drawMessageError(id, type, heading, content, kvps = null) {
921
messageDiv.appendChild(errorGroup);
922
923
// Check detail mode and expand if needed
924
- const detailMode = window.Alpine?.store("preferences")?.detailMode || "current";
924
+ const detailMode = preferencesStore.detailMode || "current";
925
if (detailMode === "current" || detailMode === "expanded") {
926
errorGroup.classList.add("expanded");
927
}