AW-814: Changed widget component height
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
parent
af1a54ae07
commit
19a8393a3a
1
.npmrc
Normal file
1
.npmrc
Normal file
@ -0,0 +1 @@
|
||||
@FarmMaps:registry=https://repository.akkerweb.nl/repository/npm-group/
|
@ -19,7 +19,7 @@
|
||||
.widget:after {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-bottom: 100%;
|
||||
padding-bottom: 66%;
|
||||
}
|
||||
|
||||
.content {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user