remove show_as_featurelist again
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Willem Dantuma 2020-02-21 11:28:46 +01:00
parent ba0a60ba09
commit 85143986ee
2 changed files with 5 additions and 9 deletions

View File

@ -141,11 +141,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
urlparts.push(itemType.editor); urlparts.push(itemType.editor);
urlparts.push('item'); urlparts.push('item');
urlparts.push(queryState.itemCode); urlparts.push(queryState.itemCode);
} }
if (itemType.viewer == "show_as_featurelist" ) {
queryState.parentCode=queryState.itemCode;
queryState.itemCode=null;
}
} }
if(urlparts.length>0) { if(urlparts.length>0) {
this.router.navigate(urlparts); this.router.navigate(urlparts);

View File

@ -104,12 +104,12 @@ export class AppCommonEffects {
var itemType = itemtypes[a.item.itemType]; var itemType = itemtypes[a.item.itemType];
var viewer = itemType.viewer; var viewer = itemType.viewer;
var editor = itemType.editor; var editor = itemType.editor;
if(viewer == 'select_as_mapitem' || viewer == 'show_as_featurelist') { if(viewer == 'select_as_mapitem') {
let queryState = { let queryState = {
itemCode: (viewer == 'show_as_featurelist')?null:a.item.code, itemCode: a.item.code,
parentCode: (viewer == 'show_as_featurelist')?a.item.code:null, parentCode: null,
level: 1, level: 1,
itemType: (viewer == 'show_as_featurelist')?a.item.itemType:null, itemType: null,
bboxFilter: false, bboxFilter: false,
query: null, query: null,
tags: null, tags: null,