Bugs reported solved

This commit is contained in:
Eudes Inácio
2023-03-09 09:09:10 +01:00
parent 7c6bd9c0a4
commit 6c7a007812
16 changed files with 88 additions and 34 deletions
@@ -6,7 +6,7 @@
</button>
</div>
<div class="buttons">
<button class="btn-cancel" shape="round" >Adicionar</button>
<button (click)="addContacts()" class="btn-cancel" shape="round" >Adicionar</button>
<button (click)="leaveGroup()" class="btn-cancel" shape="round" >Sair do Grupo</button>
<button *ngIf="isAdmin" (click)="openChangeGroupName()" class="btn-cancel btn-cancel mt-10" shape="round" >Alterar nome do grupo</button>
<div class="solid"></div>
@@ -7,6 +7,7 @@ import { SetRoomOwnerPage } from 'src/app/modals/set-room-owner/set-room-owner.p
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
import { HttpErrorResponse } from '@angular/common/http';
import { SessionStore } from 'src/app/store/session.service';
import { GroupContactsPage } from '../../chat/group-messages/group-contacts/group-contacts.page';
@Component({
@@ -19,6 +20,7 @@ export class ChatPopoverPage implements OnInit {
room: any;
members:any;
isAdmin = false;
isGroupCreated: boolean;
constructor(
private popoverController: PopoverController,
@@ -138,4 +140,26 @@ export class ChatPopoverPage implements OnInit {
}
}
async addContacts() {
const modal = await this.modalController.create({
component: GroupContactsPage,
componentProps: {
isCreated: this.isGroupCreated,
room: this.room,
members: this.members,
name: this.room.name,
},
cssClass: 'contacts',
backdropDismiss: false
});
await modal.present();
modal.onDidDismiss().then(() => {
/* this.getRoomInfo(); */
});
}
}