Commit a2b8c712 authored by Sebastian's avatar Sebastian

meh

parent 37445876
......@@ -5,7 +5,7 @@
Du möchtest Daten aus dem GeoPortal herunterladen, um Sie außerhalb unserer Plattform weiternutzen zu können? Dann
bist du hier richtig. Um den gesamten Datensatz herunterzuladen, gehe folgendermaßen vor:
</p>
<form [formGroup]="exportFormGroup" (ngSubmit)="exportUrl=apiService.apiURL; submitExportForm();">
<form [formGroup]="exportFormGroup" (ngSubmit)="exportUrl=this.getApiService().apiURL; submitExportForm();">
<h2>1. Welche allgemeinen Information zu den jeweiligen Ort möchtest du herunterladen? (soweit verfügbar).</h2>
<br>
......
......@@ -77,4 +77,7 @@ export class DatenexportSeiteComponent implements OnInit {
win.opener = null;
win.focus();
}
getApiService(){
return this.apiService;
}
}
......@@ -29,7 +29,7 @@
<input type="text" formControlName="searchPattern"
class="form-control searchinput" placeholder="Wie heißt dein Ort?" />
-->
<app-autosuggest formControlName="searchPattern" (selected)="search($term)"></app-autosuggest>
<app-autosuggest formControlName="searchPattern" (selected)="search()"></app-autosuggest>
<!-- old search button
<div class="input-group-append">
<button (click)="search()"
......
......@@ -99,7 +99,7 @@
<label class="col-sm-3 col-form-label"></label>
<div class="col">
<button type="button" class="btn btn-primary btn-block"
(click)="modalService.open('networkpartnersearch',true,undefined,{node:node})"><i
(click)="getModalService().open('networkpartnersearch',true,undefined,{node:node})"><i
aria-hidden="true" class="fa fa-plus-circle fa-lg"></i> Netzwerkpartner*innen
hinzufügen</button>
</div>
......
......@@ -17,6 +17,9 @@ export class NetworkpartnerComponent implements OnInit {
private modalService: ModalManagerService
) { }
getModalService(){
return this.modalService;
}
ngOnInit() {
if(this.form){
console.log("Have form in networkpartner.");
......
<div class="modal-header">
<h4 class="modal-title">Neue Kategorie hinzufügen</h4>
<button type="button" class="close" aria-label="Close" (click)="modalService.close('Cross click')">
<button type="button" class="close" aria-label="Close" (click)="close('Cross click')">
<span aria-hidden="true">&times;</span>
</button>
</div>
......@@ -14,5 +14,5 @@
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" (click)="modalService.close('Close click')" ngbAutofocus>Auswahl hinzufügen</button>
<button type="button" class="btn btn-primary" (click)="close('Close click')" ngbAutofocus>Auswahl hinzufügen</button>
</div>
......@@ -17,5 +17,8 @@ export class AddcategoryComponent implements OnInit {
ngOnInit() {
}
close(){
}
}
<div class="modal-header">
<h4 class="modal-title">Etwas Eintragen</h4>
<button type="button" class="close" aria-label="Close" (click)="this.close()">
<button type="button" class="close" aria-label="Close" (click)="close()">
<span aria-hidden="true">&times;</span>
</button>
</div>
......
......@@ -23,6 +23,9 @@ export class AddsomethingComponent implements OnInit {
}
this.activeModal.close();
}
close(){
this.activeModal.close();
}
ngOnInit() {
}
......
......@@ -13,5 +13,5 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Änderungen verwerfen</button>
<button type="button" class="btn btn-primary" (click)="modalService.close('Close click')" ngbAutofocus>Auf dieser Seite bleiben</button>
<button type="button" class="btn btn-primary" (click)="close('Close click')" ngbAutofocus>Auf dieser Seite bleiben</button>
</div>
......@@ -17,5 +17,8 @@ export class ContentPublicComponent implements OnInit {
ngOnInit() {
}
close(){
}
}
......@@ -11,5 +11,5 @@
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" (click)="modalService.close('Close click')" ngbAutofocus>Alles Klar</button>
<button type="button" class="btn btn-primary" (click)="close('Close click')" ngbAutofocus>Alles Klar</button>
</div>
......@@ -17,5 +17,7 @@ export class EditsourceComponent implements OnInit {
ngOnInit() {
}
close(){
}
}
......@@ -11,5 +11,5 @@
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" (click)="modalService.close('Close click')" ngbAutofocus>Akzeptieren</button>
<button type="button" class="btn btn-primary" (click)="close('Close click')" ngbAutofocus>Akzeptieren</button>
</div>
......@@ -17,5 +17,7 @@ export class TermsofuseComponent implements OnInit {
ngOnInit() {
}
close(){
}
}
......@@ -14,7 +14,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Änderungen verwerfen</button>
<button type="button" class="btn btn-primary" (click)="modalService.close('Close click')" ngbAutofocus>Auf dieser Seite bleiben</button>
<button type="button" class="btn btn-primary" (click)="close('Close click')" ngbAutofocus>Auf dieser Seite bleiben</button>
</div>
......@@ -17,5 +17,7 @@ export class UnsafedcontentComponent implements OnInit {
ngOnInit() {
}
close(){
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment