Fix delete group bug

master
Max 5 years ago
parent fc5c325e44
commit 5c96c7ad44

@ -79,6 +79,14 @@
[disabled]="!isAdmin">
<mat-icon>event</mat-icon>
</button>
<div style="display: contents;" *ngIf="groupProfile.deletable">
<button mat-icon-button
class="request-button"
matTooltip="delete this group" matTooltipShowDelay="0"
(click)="deleteGroup()">
<mat-icon>delete</mat-icon>
</button>
</div>
</div>
</mat-toolbar-row>
<mat-toolbar-row>
@ -115,14 +123,6 @@
(click)="leaveEvent(event)"
[disabled]="!event.joined">
<mat-icon>event_busy</mat-icon>
<div style="display: contents;" *ngIf="groupProfile.deletable">
<button mat-icon-button
class="request-button"
matTooltip="delete this group" matTooltipShowDelay="0"
(click)="deleteGroup()">
<mat-icon>delete</mat-icon>
</button>
</div>
</button>
</div>
</mat-card-header>

@ -121,8 +121,7 @@ export class GroupService extends BaseService {
public deleteGroup(groupId: number) {
const body = {
query: `mutation($groupId: ID!) {
deleteGroup(groupId: $groupId) {
}
deleteGroup(groupId: $groupId)
}`, variables: {
groupId
}

Loading…
Cancel
Save