feat: folder selection support in useMediaAsset and file widget (#706)
This commit is contained in:
@ -52,6 +52,7 @@ export type MediaLibraryState = {
|
||||
dynamicSearchActive?: boolean;
|
||||
dynamicSearchQuery?: string;
|
||||
forImage?: boolean;
|
||||
forFolder?: boolean;
|
||||
isPersisting?: boolean;
|
||||
isDeleting?: boolean;
|
||||
hasNextPage?: boolean;
|
||||
@ -76,6 +77,7 @@ function mediaLibrary(
|
||||
const {
|
||||
controlID,
|
||||
forImage,
|
||||
forFolder,
|
||||
config,
|
||||
collection,
|
||||
collectionFile,
|
||||
@ -91,6 +93,7 @@ function mediaLibrary(
|
||||
...state,
|
||||
isVisible: true,
|
||||
forImage: Boolean(forImage),
|
||||
forFolder: Boolean(forFolder),
|
||||
controlID,
|
||||
config: libConfig,
|
||||
collection,
|
||||
|
Reference in New Issue
Block a user