remove un used import

This commit is contained in:
Peter Maquiran
2023-06-22 12:53:35 +01:00
parent f849610b8c
commit 6ea40ab55f
37 changed files with 289 additions and 324 deletions
@@ -1,6 +1,5 @@
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { ModalController, PickerController, PopoverController } from '@ionic/angular';
import { AuthService } from 'src/app/services/auth.service';
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
import { DataService } from 'src/app/services/data.service';
import { GroupDurationPage } from 'src/app/shared/popover/group-duration/group-duration.page';
@@ -9,7 +8,6 @@ import { GroupContactsPage } from '../group-messages/group-contacts/group-contac
import { ToastService } from 'src/app/services/toast.service';
import { ThemeService } from 'src/app/services/theme.service';
import { RouteService } from 'src/app/services/route.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-new-group',
templateUrl: './new-group.page.html',
@@ -25,9 +23,15 @@ export class NewGroupPage implements OnInit{
selectedDuration = ['','',''];
countDownTime:any;
task:any;
event: any
link = ''
documents: any;
loggedUserChat: any;
contact: {
Email: string
DisplayName: string
}[]
@Input() roomId: string;
@Input() groupName:string;
@@ -41,9 +45,7 @@ export class NewGroupPage implements OnInit{
private popoverController: PopoverController,
private modalController: ModalController,
private dataService:DataService,
private router: Router,
public ChatSystemService: ChatSystemService,
private authService: AuthService,
private toastService: ToastService,
public ThemeService: ThemeService,
private RouteService: RouteService,
@@ -55,12 +57,24 @@ export class NewGroupPage implements OnInit{
ngOnInit() {
this.task = this.dataService.get("task");
this.event = this.dataService.get("event");
if(this.task) {
this.link = this.dataService.get("link");
this.groupName = this.task.Folio;
this.documents = this.dataService.get("documents");
this.dataService.set("newGroup", false);
this.dataService.set("link", false);
} else if (this.event) {
//
this.link = this.dataService.get("link");
this.groupName = this.event.Subject;
this.documents = this.dataService.get("documents");
this.contact = this.dataService.get("contacts");
//
this.dataService.set("newGroup", false);
this.dataService.set("link", false);
}
}
@@ -194,7 +208,7 @@ export class NewGroupPage implements OnInit{
}, 150);
}
async addContacts(){
async addContacts() {
this.close();
let name = this.groupName.split(' ').join('-');
@@ -225,7 +239,7 @@ export class NewGroupPage implements OnInit{
return await popover.present();
}
async showPicker(){
async showPicker() {
const picker = await this.pickerController.create({
cssClass: '',
buttons: [