Deleted one option in group manage page
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user