mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Maryhipp/dummy bulk download (#4852)
* UI for bulk downloading boards or groups of images * placeholder route for bulk downloads that does nothing * lint --------- Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local>
This commit is contained in:
@ -1599,6 +1599,19 @@ export const imagesApi = api.injectEndpoints({
|
||||
}
|
||||
},
|
||||
}),
|
||||
bulkDownloadImages: build.mutation<
|
||||
components['schemas']['ImagesDownloaded'],
|
||||
components['schemas']['Body_download_images_from_list']
|
||||
>({
|
||||
query: ({ image_names, board_id }) => ({
|
||||
url: `images/download`,
|
||||
method: 'POST',
|
||||
body: {
|
||||
image_names,
|
||||
board_id,
|
||||
},
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
});
|
||||
|
||||
@ -1623,4 +1636,5 @@ export const {
|
||||
useStarImagesMutation,
|
||||
useUnstarImagesMutation,
|
||||
useGetImageMetadataFromFileQuery,
|
||||
useBulkDownloadImagesMutation,
|
||||
} = imagesApi;
|
||||
|
Reference in New Issue
Block a user