From bfea1173b4bf7797692f5ef36c6763d0c78b84e9 Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Thu, 18 Nov 2021 11:15:17 +0100 Subject: [PATCH] [editor] Fix likert column image removal to act on save and not before --- .../components/dialogs/likert-column-edit-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/editor/src/app/components/dialogs/likert-column-edit-dialog.component.ts b/projects/editor/src/app/components/dialogs/likert-column-edit-dialog.component.ts index 09bd9e901..8cdcba1b1 100644 --- a/projects/editor/src/app/components/dialogs/likert-column-edit-dialog.component.ts +++ b/projects/editor/src/app/components/dialogs/likert-column-edit-dialog.component.ts @@ -13,7 +13,7 @@ import { FileService } from '../../../../../common/file.service'; </mat-form-field> <input #imageUpload type="file" hidden (click)="loadImage()"> <button mat-raised-button (click)="imageUpload.click()">{{ 'loadImage' | translate }}</button> - <button mat-raised-button (click)="data.column.imgSrc = null">{{ 'removeImage' | translate }}</button> + <button mat-raised-button (click)="imgSrc = null">{{ 'removeImage' | translate }}</button> <img [src]="imgSrc" [style.object-fit]="'scale-down'" [width]="200"> -- GitLab