Commit 39507bd2 authored by Sebastian's avatar Sebastian

kleinere bugfixes, "alle anzeigen"-Button klappt jetzt

parent eb19b502
......@@ -20,6 +20,7 @@ export class BliComponent implements OnInit{
constructor(private bliService: BliService, private logger: LogService,private authService: AuthService) {
}
hasDimension(node:OsmNode, dimName:String){
for(let dim of node.dimensions){
if(dim.name == dimName){
......
......@@ -27,13 +27,13 @@ bottom:56px;*/
position:relative;
}
.search-results-wrap {
overflow: scroll;
position: fixed;
display: block;
bottom: 120px;
top: 221px;
width:405px;
overflow: scroll;
position: fixed;
display: block;
bottom: 120px;
top: 221px;
width:405px;
background:#FFF;
}
#freesearchtab {
background-color: #e6e6e6;
......
......@@ -19,8 +19,7 @@
</div>-->
<div class="list-group-item list-group-item-action">
<i aria-hidden="true" class="fa fa-map-marker fa-lg"></i> Alle Orte
sehen <label class="switch"><input type="checkbox"><span
class="slider round"></span> </label>
sehen <label class="switch"><input type="checkbox" (change)="toggleAllPlaces($event)" checked="showAll == true"><span class="slider round"></span> </label>
</div>
<div class="">
<input type="text" formControlName="searchPattern"
......@@ -55,7 +54,11 @@
</form>
<div *ngIf="hasResults" class="search-results-wrap">
<div class="" *ngIf="searched && this.osmNodes.length == 0">
<div class="" *ngIf="searched">Searched</div>
Length: {{f.length}}
Searched: {{searched?"yes":"no"}}
<div class="" *ngIf="osmNodes.length == 0">Length == 0</div>
<div class="" *ngIf="searched && osmNodes.length == 0">
<div class="searchbox-heading">Orte des guten Lebens</div>
<div class="searchbox-text-only">
<i class="fa fa-exclamation-triangle fa-lg" aria-hidden="true"></i>
......@@ -182,16 +185,7 @@
</div>
<div class="float-right sidecontainerright"
*ngIf="nodeService.detailView">
<!-- <div *ngIf="authService.loggedIn" class="searcheditPrepend"
(click)="edit(nodeService.detailView)">
<div class="form-group item-detail name">
<button class="btn search-button" type="submit">
<i class="fa fa-pencil fa-lg" aria-hidden="true"></i>
</button>
</div>
</div> -->
<div class="float-right sidecontainerright" *ngIf="nodeService.detailView">
<div class="searcheditPrepend">
<div *ngIf="state=='visible'" class="searchedetailstogglePrepend">
<div (click)="toggleVisibilityDetails();"
......@@ -288,6 +282,7 @@
</div>
<div id="collapseDescription" [ngbCollapse]="isCollapsed">
<div class="card ">
<div class="card-body">
<div *ngIf="!authService.loggedIn"
class="form-group row item-detail">
......@@ -298,18 +293,16 @@
rows="15">{{nodeService.detailView.description}}</textarea>
</div>
<div class="elementbli">
<div class="form-group row item-detail">
<label for="elementBli" class="col-sm col-form-label">
<strong>BLI-Dimensionen</strong>
</label>
</div>
<!--<div *ngFor="let dimension of nodeService.detailView.dimensions"
class="list-group">
<div class="list-group-item list-group-item-action" title="{{dimension.description}}">{{dimension.name}}</div>
</div>-->
<app-bli class="bli-app" [node]="nodeService.detailView"
[displayType]="checkboxes_non_icons"></app-bli>
<app-bli class="bli-app" [node]="nodeService.detailView"
[displayType]="'icons_and_labels'"></app-bli>
</div>
<div class="elementpartner">
<div class="form-group row item-detail">
......@@ -353,7 +346,7 @@
</div>
</div>
<br>
<div class="elementnew exclamation">
<div *ngIf="!nodeService.detailView.knownEntity()" class="elementnew exclamation">
<i class="fa fa-exclamation-triangle fa-lg" aria-hidden="true">&nbsp;</i>
<p>Dieser Ort ist noch nicht Teil des GeoPortals des Guten Lebens. Wenn du ihn bearbeitest, wird er als Ort des Guten Lebens sichtbar.</p>
</div>
......@@ -370,7 +363,7 @@
Ort bearbeiten</button>
</div>
</div>
<div class="elementlastedit">Letzte Änderung</div>
<div class="elementlastedit">Letzte Änderung {{nodeService.detailView.getDate()}}</div>
</div>
</div>
</div>
......
This diff is collapsed.
import { Injectable } from '@angular/core';
import { OsmNode } from '../models/OsmNode';
import { OsmNodeFactory } from '../models/OsmNodeFactory';
import { Rectangle } from '../models/Rectangle';
import { GeoportalApiService } from './geoportal-api.service';
import { CacheService } from './cache.service';
import { LogService } from './log.service';
......
This diff is collapsed.
......@@ -53,21 +53,25 @@ export class OsmNodeService {
});
}
}
showDetails(node:OsmNode){
this.detailView = node;
if(node){
this.updateElementFromServer(node);
}
}
hideDetails(){
this.detailView = null;
}
editElement(node:OsmNode){
this.elementToEdit=node;
if(node){
this.updateElementFromServer(node);
}
}
parseResponse(response:any){
this.logger.debug("OsmNodeService: parseResponse");
this.result.length = 0;
......
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