mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 22:52:12 -03:00
feat: Update activeFolder state initialization to load from localStorage for each model type
This commit is contained in:
@@ -29,7 +29,7 @@ export const state = {
|
|||||||
isLoading: false,
|
isLoading: false,
|
||||||
hasMore: true,
|
hasMore: true,
|
||||||
sortBy: 'name',
|
sortBy: 'name',
|
||||||
activeFolder: null,
|
activeFolder: getStorageItem(`${MODEL_TYPES.LORA}_activeFolder`),
|
||||||
activeLetterFilter: null,
|
activeLetterFilter: null,
|
||||||
previewVersions: loraPreviewVersions,
|
previewVersions: loraPreviewVersions,
|
||||||
searchManager: null,
|
searchManager: null,
|
||||||
@@ -78,7 +78,7 @@ export const state = {
|
|||||||
isLoading: false,
|
isLoading: false,
|
||||||
hasMore: true,
|
hasMore: true,
|
||||||
sortBy: 'name',
|
sortBy: 'name',
|
||||||
activeFolder: null,
|
activeFolder: getStorageItem(`${MODEL_TYPES.CHECKPOINT}_activeFolder`),
|
||||||
previewVersions: checkpointPreviewVersions,
|
previewVersions: checkpointPreviewVersions,
|
||||||
searchManager: null,
|
searchManager: null,
|
||||||
searchOptions: {
|
searchOptions: {
|
||||||
@@ -104,7 +104,7 @@ export const state = {
|
|||||||
isLoading: false,
|
isLoading: false,
|
||||||
hasMore: true,
|
hasMore: true,
|
||||||
sortBy: 'name',
|
sortBy: 'name',
|
||||||
activeFolder: null,
|
activeFolder: getStorageItem(`${MODEL_TYPES.EMBEDDING}_activeFolder`),
|
||||||
activeLetterFilter: null,
|
activeLetterFilter: null,
|
||||||
previewVersions: embeddingPreviewVersions,
|
previewVersions: embeddingPreviewVersions,
|
||||||
searchManager: null,
|
searchManager: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user