mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): sort log namespaces
This commit is contained in:
@@ -15,11 +15,11 @@ export const SettingsDeveloperLogNamespaces = memo(() => {
|
||||
if (s.system.logNamespaces.length === 0) {
|
||||
return EMPTY_ARRAY;
|
||||
} else {
|
||||
return s.system.logNamespaces.toSorted();
|
||||
return s.system.logNamespaces;
|
||||
}
|
||||
});
|
||||
const disabledLogNamespaces = useMemo(
|
||||
() => difference(zLogNamespace.options, enabledLogNamespaces).toSorted(),
|
||||
() => difference(zLogNamespace.options, enabledLogNamespaces),
|
||||
[enabledLogNamespaces]
|
||||
);
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@ export const systemSlice = createSlice({
|
||||
},
|
||||
logNamespaceToggled: (state, action: PayloadAction<LogNamespace>) => {
|
||||
if (state.logNamespaces.includes(action.payload)) {
|
||||
state.logNamespaces = uniq(state.logNamespaces.filter((n) => n !== action.payload));
|
||||
state.logNamespaces = uniq(state.logNamespaces.filter((n) => n !== action.payload)).toSorted();
|
||||
} else {
|
||||
state.logNamespaces = uniq([...state.logNamespaces, action.payload]);
|
||||
state.logNamespaces = uniq([...state.logNamespaces, action.payload]).toSorted();
|
||||
}
|
||||
},
|
||||
shouldAntialiasProgressImageChanged: (state, action: PayloadAction<boolean>) => {
|
||||
|
||||
Reference in New Issue
Block a user