️ Check if modal is open for drag&drop events

timeline
Alix JEUDI--LEMOINE 1 week ago
parent f3ea54f8af
commit 6b43cf7c25

@ -121,6 +121,7 @@
>Images</label
>
<app-drag-drop
*ngIf="isPinModalOpen"
[initialFiles]="getFileNames()"
(filesSelected)="onFilesReceived($event)"
(fileRemoved)="removeFile($event)"

@ -1,6 +1,5 @@
import { CommonModule } from '@angular/common';
import {
AfterViewInit,
Component,
Input,
OnInit,
@ -193,7 +192,6 @@ export class AddPinPopupComponent implements OnInit {
this.uploadError = file.name + ' : ' + 'Image vide';
return of(null);
}
return this.imageService.postImage(file).pipe(
catchError(error => {
this.uploadError = file.name + ' : ' + error.error.detail || 'Erreur lors de l\'upload de l\'image';

Loading…
Cancel
Save