From b299ee73c2e34b3c36d75a6d37efc74b55ee0a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Mon, 4 Feb 2019 16:20:12 +0100 Subject: [PATCH] Stop propagation when delete-/edit-button is clicked --- .../creator/content-list/content-list.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/creator/content-list/content-list.component.html b/src/app/components/creator/content-list/content-list.component.html index 63647a3b2..a7d9553bb 100644 --- a/src/app/components/creator/content-list/content-list.component.html +++ b/src/app/components/creator/content-list/content-list.component.html @@ -16,10 +16,10 @@ <mat-card-content> <mat-expansion-panel *ngFor="let content of contents" class="matPanel"> <mat-expansion-panel-header> - <button mat-button color="accent" (click)="editContent(content.subject)"> + <button mat-button color="accent" (click)="$event.stopPropagation();"> <mat-icon>create</mat-icon> </button> - <button mat-button color="warn" (click)="deleteContentDialog(content)"> + <button mat-button color="warn" (click)="deleteContentDialog(content);$event.stopPropagation();"> <mat-icon>delete_forever</mat-icon> </button> <mat-panel-title> -- GitLab