File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -258,12 +258,13 @@ export const systemAssetsApi = {
258258 * List all system assets
259259 * GET /api/admin/assets
260260 */
261- getSystemAssets : ( params ?: { page ?: number ; pageSize ?: number ; category ?: string ; visibility ?: number } ) : Promise < PagedResponse < SystemAssetDto > > => {
261+ getSystemAssets : ( params ?: { page ?: number ; pageSize ?: number ; category ?: string ; visibility ?: number ; search ?: string } ) : Promise < PagedResponse < SystemAssetDto > > => {
262262 const queryParams = new URLSearchParams ( ) ;
263263 if ( params ?. page !== undefined ) queryParams . append ( 'page' , params . page . toString ( ) ) ;
264264 if ( params ?. pageSize !== undefined ) queryParams . append ( 'pageSize' , params . pageSize . toString ( ) ) ;
265265 if ( params ?. category !== undefined ) queryParams . append ( 'category' , params . category ) ;
266266 if ( params ?. visibility !== undefined ) queryParams . append ( 'visibility' , params . visibility . toString ( ) ) ;
267+ if ( params ?. search !== undefined ) queryParams . append ( 'search' , params . search ) ;
267268 const queryString = queryParams . toString ( ) ;
268269 return httpClient < PagedResponse < SystemAssetDto > > ( `/admin/assets${ queryString ? `?${ queryString } ` : '' } ` ) ;
269270 } ,
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ const handleBatchVisibility = async () => {
230230 try {
231231 // Batch visibility updates for system assets - using individual API calls
232232 const promises = Array .from (selectedAssets .value ).map (id =>
233- systemAssetsApi .updateSystemAsset (id , { Visibility: parseInt (batchVisibility .value ) as Visibility })
233+ systemAssetsApi .patchSystemAsset (id , { Visibility: parseInt (batchVisibility .value ) as Visibility })
234234 );
235235 await Promise .all (promises );
236236 ui .notify (t (' common.updateSuccess' ), ' success' );
You can’t perform that action at this time.
0 commit comments