diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..4d02efa --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@FarmMaps:registry=https://repository.akkerweb.nl/repository/npm-group/ diff --git a/projects/common-map/src/fm-map/components/item-list/item-list.component.scss b/projects/common-map/src/fm-map/components/item-list/item-list.component.scss index f2aec84..81daa71 100644 --- a/projects/common-map/src/fm-map/components/item-list/item-list.component.scss +++ b/projects/common-map/src/fm-map/components/item-list/item-list.component.scss @@ -19,7 +19,7 @@ .widget:after { content: ""; display: block; - padding-bottom: 100%; + padding-bottom: 66%; } .content { diff --git a/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts b/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts index aee61ee..32c37fb 100644 --- a/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts +++ b/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts @@ -1,11 +1,10 @@ -import { Component, Input, Injectable } from '@angular/core'; -import { Location } from '@angular/common'; -import { Feature } from 'ol'; -import { Store } from '@ngrx/store'; +import {Component, Injectable, Input} from '@angular/core'; +import {Location} from '@angular/common'; +import {Store} from '@ngrx/store'; import * as mapReducers from '../../reducers/map.reducer'; -import { commonReducers,ItemTypeService, IItem, Item,AppConfig } from '@farmmaps/common'; +import {AppConfig, commonReducers, IItem, ItemTypeService} from '@farmmaps/common'; import * as mapActions from '../../actions/map.actions'; -import { Router, ActivatedRoute, ParamMap, Event } from '@angular/router'; +import {Router} from '@angular/router'; @Injectable() @@ -23,13 +22,13 @@ export abstract class AbstractSelectedItemComponent { return false; } - handleOnEdit(item: IItem) { + handleOnEdit(item: IItem) { var editor = "property"; if(this.itemTypeService.hasEditor(item)) { editor = this.itemTypeService.itemTypes[item.itemType].editor; } let url = `/editor/${editor}/item/${item.code}` - this.router.navigate([url]); + this.router.navigate([url]); return false; }