|
|
|
@@ -1,23 +1,34 @@ |
|
|
|
import {Component} from '@angular/core'; |
|
|
|
import {Component, OnInit} from '@angular/core'; |
|
|
|
import {NgbModal} from "@ng-bootstrap/ng-bootstrap"; |
|
|
|
import {ModalComponent} from "@app/_components/modal/modal.component"; |
|
|
|
import {NewContactComponent} from "@app/partners/new-contact/new-contact.component"; |
|
|
|
import {ActivatedRoute} from "@angular/router"; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'app-partners-detail', |
|
|
|
templateUrl: './partners-detail.component.html', |
|
|
|
styleUrl: './partners-detail.component.scss' |
|
|
|
}) |
|
|
|
export class PartnersDetailComponent { |
|
|
|
export class PartnersDetailComponent implements OnInit { |
|
|
|
private closeResult = ''; |
|
|
|
protected id: string; |
|
|
|
|
|
|
|
protected readonly ModalComponent = ModalComponent; |
|
|
|
constructor(private modalService: NgbModal) { |
|
|
|
constructor( |
|
|
|
private modalService: NgbModal, |
|
|
|
private route: ActivatedRoute |
|
|
|
) { |
|
|
|
this.id = ""; |
|
|
|
} |
|
|
|
openModalNewContact() { |
|
|
|
const modalRef = this.modalService.open(ModalComponent); |
|
|
|
modalRef.componentInstance.dynamicComponent = NewContactComponent; |
|
|
|
} |
|
|
|
|
|
|
|
ngOnInit() {} |
|
|
|
ngOnInit() { |
|
|
|
this.route.params.subscribe(params => { |
|
|
|
this.id = params['id']; |
|
|
|
// Hier kannst du die Logik für die Anzeige der Details für den bestimmten Partner implementieren |
|
|
|
}); |
|
|
|
} |
|
|
|
} |