Add loading indicators to product CRUD and dialog components
This commit is contained in:
@@ -516,6 +516,16 @@ export class PrestashopService {
|
||||
);
|
||||
}
|
||||
|
||||
deleteProductImage(productId: number, imageId: number) {
|
||||
// Presta : DELETE /images/products/{id_product}/{id_image}
|
||||
return this.http.delete(
|
||||
`${this.base}/images/products/${productId}/${imageId}`,
|
||||
{ responseType: 'text' }
|
||||
).pipe(
|
||||
map(() => true)
|
||||
);
|
||||
}
|
||||
|
||||
// -------- Stock (quantité) — gestion fine via stock_availables
|
||||
|
||||
getProductQuantity(productId: number) {
|
||||
|
||||
Reference in New Issue
Block a user