Aw4751 eslint fixes
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -16,8 +16,8 @@ import { AppConfig } from "../../shared/app.config";
|
||||
|
||||
export class ThumbnailComponent {
|
||||
@Input() public item: IListItem;
|
||||
@Input() public edit: boolean = false;
|
||||
@Input() public save: boolean = true;
|
||||
@Input() public edit = false;
|
||||
@Input() public save = true;
|
||||
@Output() changed = new EventEmitter();
|
||||
@ViewChild('thumbnail') el:ElementRef;
|
||||
@ViewChild('modal') modal:EditImageModalComponent;
|
||||
@@ -40,7 +40,7 @@ import { AppConfig } from "../../shared/app.config";
|
||||
|
||||
getFontSize():string {
|
||||
if(this.el) {
|
||||
var h = this.el.nativeElement.offsetHeight - (this.el.nativeElement.offsetHeight / 5 )
|
||||
const h = this.el.nativeElement.offsetHeight - (this.el.nativeElement.offsetHeight / 5 )
|
||||
return h + "px";
|
||||
} else {
|
||||
return "1em";
|
||||
|
Reference in New Issue
Block a user