You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 lines
1.1 KiB

  1. import {Component, OnInit} from '@angular/core';
  2. import {NgbModal} from "@ng-bootstrap/ng-bootstrap";
  3. import {ModalComponent} from "@app/_components/modal/modal.component";
  4. import {NewContactComponent} from "@app/partners/new-contact/new-contact.component";
  5. import {ActivatedRoute} from "@angular/router";
  6. @Component({
  7. selector: 'app-partners-detail',
  8. templateUrl: './partners-detail.component.html',
  9. styleUrl: './partners-detail.component.scss'
  10. })
  11. export class PartnersDetailComponent implements OnInit {
  12. private closeResult = '';
  13. protected id: string;
  14. protected readonly ModalComponent = ModalComponent;
  15. constructor(
  16. private modalService: NgbModal,
  17. private route: ActivatedRoute
  18. ) {
  19. this.id = "";
  20. }
  21. openModalNewContact() {
  22. const modalRef = this.modalService.open(ModalComponent);
  23. modalRef.componentInstance.dynamicComponent = NewContactComponent;
  24. }
  25. ngOnInit() {
  26. this.route.params.subscribe(params => {
  27. this.id = params['id'];
  28. // Hier kannst du die Logik für die Anzeige der Details für den bestimmten Partner implementieren
  29. });
  30. }
  31. }