Deleted one option in group manage page

This commit is contained in:
2026-04-28 11:28:08 +01:00
parent 9367f5e7b3
commit f09d5a0f11
2 changed files with 6 additions and 17 deletions
@@ -57,22 +57,11 @@
<ion-icon slot="end" class="text-xl text-red-800" name="logout"></ion-icon>
</ion-item>
} @else {
@switch (n) {
@case (1) {
<ion-item lines="full" class="transition-all duration-200 active:[--background:#DBD8D7]"
(click)="addToGroup()">
<p class="text-sm text-gray-600">Ajouter un membre</p>
<ion-icon slot="end" class="text-xl text-gray-400" name="chevron"></ion-icon>
</ion-item>
}
@case (2) {
<ion-item lines="full" class="transition-all duration-200 active:[--background:#DBD8D7]"
(click)="deleteGroup()">
<p class="text-sm text-red-800">Supprimer le groupe</p>
<ion-icon slot="end" class="text-xl text-red-800" name="chevron"></ion-icon>
</ion-item>
}
}
<ion-item lines="full" class="transition-all duration-200 active:[--background:#DBD8D7]"
(click)="deleteGroup()">
<p class="text-sm text-red-800">Supprimer le groupe</p>
<ion-icon slot="end" class="text-xl text-red-800" name="chevron"></ion-icon>
</ion-item>
}
}
</ion-list>
@@ -35,7 +35,7 @@ export class GroupInfoComponent implements OnInit {
idGroup = output<number>();
options = [1, 2, 3];
options = [1, 2];
ngOnInit() {
this.group.set(this.groupSelected());