From dc8a9f505320b90f08fe8645521320a14c7b6b01 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 4 Apr 2023 21:54:50 +0200 Subject: [PATCH] debugging --- .../dynamic-form-components/edit-photo/edit-photo.component.html | 1 + .../dynamic-form-components/edit-photo/edit-photo.component.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/core/entity-components/entity-utils/dynamic-form-components/edit-photo/edit-photo.component.html b/src/app/core/entity-components/entity-utils/dynamic-form-components/edit-photo/edit-photo.component.html index 6fcaba157a..04f4c482a9 100644 --- a/src/app/core/entity-components/entity-utils/dynamic-form-components/edit-photo/edit-photo.component.html +++ b/src/app/core/entity-components/entity-utils/dynamic-form-components/edit-photo/edit-photo.component.html @@ -2,6 +2,7 @@ type="file" style="display: none" (change)="onFileSelected($event.target['files'][0])" + accept="image/*" #fileUpload > profile photo diff --git a/src/app/core/entity-components/entity-utils/dynamic-form-components/edit-photo/edit-photo.component.ts b/src/app/core/entity-components/entity-utils/dynamic-form-components/edit-photo/edit-photo.component.ts index 20fee5f388..368a72c14f 100644 --- a/src/app/core/entity-components/entity-utils/dynamic-form-components/edit-photo/edit-photo.component.ts +++ b/src/app/core/entity-components/entity-utils/dynamic-form-components/edit-photo/edit-photo.component.ts @@ -45,7 +45,6 @@ export class EditPhotoComponent extends EditFileComponent { lastModified: file.lastModified, }); await super.onFileSelected(reducedFile); - this.alertService.addInfo("info " + JSON.stringify(file)); } ngOnInit() {