Merge branch 'max_dev' of Software_Engineering_I/greenvironment-frontend into master

master
Max_ES 5 years ago committed by Gitea
commit 89427c0755

@ -79,6 +79,14 @@
[disabled]="!isAdmin"> [disabled]="!isAdmin">
<mat-icon>event</mat-icon> <mat-icon>event</mat-icon>
</button> </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> </div>
</mat-toolbar-row> </mat-toolbar-row>
<mat-toolbar-row> <mat-toolbar-row>
@ -115,14 +123,6 @@
(click)="leaveEvent(event)" (click)="leaveEvent(event)"
[disabled]="!event.joined"> [disabled]="!event.joined">
<mat-icon>event_busy</mat-icon> <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> </button>
</div> </div>
</mat-card-header> </mat-card-header>

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

Loading…
Cancel
Save