mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
fix open pdf and member list
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ModalController, NavParams, PickerController, PopoverController } from '@ionic/angular';
|
||||
import { GroupDurationPage } from 'src/app/shared/popover/group-duration/group-duration.page';
|
||||
import { GroupContactsPage } from '../group-messages/group-contacts/group-contacts.page';
|
||||
import { GroupContactsPage, IGroupContactsPageOutPutSchema } from '../group-messages/group-contacts/group-contacts.page';
|
||||
import { ThemeService } from 'src/app/services/theme.service';
|
||||
import { SessionStore } from 'src/app/store/session.service';
|
||||
import { ToastService } from 'src/app/services/toast.service';
|
||||
@@ -9,8 +9,14 @@ import { catchError } from 'rxjs/operators';
|
||||
import { ChatServiceService } from 'src/app/module/chat/domain/chat-service.service'
|
||||
import { UDate } from 'src/app/utils/date';
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
import { z } from 'zod';
|
||||
|
||||
|
||||
const NewGroupModalOutPutSchema = z.object({
|
||||
roomId: z.string().optional()
|
||||
})
|
||||
export type INewGroupModalOutPut = z.infer<typeof NewGroupModalOutPutSchema>
|
||||
|
||||
@Component({
|
||||
selector: 'app-new-group',
|
||||
templateUrl: './new-group.page.html',
|
||||
@@ -82,12 +88,10 @@ export class NewGroupPage implements OnInit {
|
||||
|
||||
|
||||
|
||||
async addContacts(roomId) {
|
||||
this.close();
|
||||
async addContacts(roomId:string) {
|
||||
|
||||
let name = this.groupName.split(' ').join('-');
|
||||
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: GroupContactsPage,
|
||||
componentProps: {
|
||||
@@ -98,7 +102,11 @@ export class NewGroupPage implements OnInit {
|
||||
});
|
||||
|
||||
|
||||
modal.onDidDismiss();
|
||||
modal.onDidDismiss<IGroupContactsPageOutPutSchema>().then(result => {
|
||||
|
||||
this.modalController.dismiss({roomId})
|
||||
|
||||
});
|
||||
await modal.present();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user