Cleaned code
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<i class="fa-solid fa-crown text-xs text-yellow-600"></i>
|
||||
}
|
||||
<div class="flex items-center justify-end gap-1 w-full">
|
||||
@if (user.grade == 'Member'){
|
||||
@if (user.grade == 'Member') {
|
||||
<ion-icon class="text-2xl text-green-800 cursor-pointer" name="arrow-up-circle-outline"
|
||||
(click)="promoteUser(user.id)"></ion-icon>
|
||||
<app-pipe></app-pipe>
|
||||
@@ -33,7 +33,7 @@
|
||||
<i class="fa-solid fa-crown text-xs text-yellow-600"></i>
|
||||
}
|
||||
<div class="flex items-center justify-end gap-1 w-full">
|
||||
@if (user.grade == 'Member'){
|
||||
@if (user.grade == 'Member') {
|
||||
<ion-icon class="text-2xl text-green-800 cursor-pointer" name="arrow-up-circle-outline"
|
||||
(click)="promoteUser(user.id)"></ion-icon>
|
||||
<app-pipe></app-pipe>
|
||||
|
||||
@@ -69,7 +69,7 @@ export class GroupInfoComponent implements OnInit {
|
||||
await loading.dismiss();
|
||||
}
|
||||
|
||||
async leaveGroup(){
|
||||
async leaveGroup() {
|
||||
const loading = await this.loadCtrl.create({
|
||||
message: 'Chargement...',
|
||||
spinner: 'lines-sharp-small'
|
||||
@@ -95,9 +95,10 @@ export class GroupInfoComponent implements OnInit {
|
||||
await loading.dismiss();
|
||||
}
|
||||
|
||||
addToGroup(){}
|
||||
addToGroup() {
|
||||
}
|
||||
|
||||
async deleteGroup(){
|
||||
async deleteGroup() {
|
||||
const loading = await this.loadCtrl.create({
|
||||
message: 'Suppression...',
|
||||
spinner: 'lines-sharp-small'
|
||||
@@ -123,7 +124,7 @@ export class GroupInfoComponent implements OnInit {
|
||||
await loading.dismiss();
|
||||
}
|
||||
|
||||
async promoteUser(id: number){
|
||||
async promoteUser(id: number) {
|
||||
const loading = await this.loadCtrl.create({
|
||||
message: 'Promotion...',
|
||||
spinner: 'lines-sharp-small'
|
||||
|
||||
Reference in New Issue
Block a user