replicate contact function

This commit is contained in:
Peter Maquiran
2023-08-21 12:22:19 +01:00
parent a89b2739c8
commit 68c849d0ee
4 changed files with 95 additions and 12 deletions
@@ -21,6 +21,7 @@ import { SessionStore } from 'src/app/store/session.service';
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
import { environment } from 'src/environments/environment';
import { TaskService } from 'src/app/services/task.service';
import { DataService } from 'src/app/services/data.service';
@Component({
selector: 'app-opts-expediente',
@@ -54,7 +55,8 @@ export class OptsExpedientePage implements OnInit {
private expedienteService: ExpedienteService,
public ThemeService: ThemeService,
private httpErrorHanlde: HttpErrorHandle,
public TaskService: TaskService
public TaskService: TaskService,
private dataService: DataService,
) {
}
@@ -65,6 +67,11 @@ export class OptsExpedientePage implements OnInit {
async openNewGroupPage() {
this.dataService.set("newGroup", true);
this.dataService.set("task", this.task);
this.dataService.set("newGroupName", this.task.Folio);
this.dataService.set("documents", this.fulltask.Documents);
this.dataService.set("link", window.location.pathname);
const modal = await this.modalController.create({
component: NewGroupPage,