mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-08-03 04:52:12 +00:00
Fix lint errors
This commit is contained in:
parent
b3d4f12ee4
commit
8a68bc0ab5
1 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
|
||||
import { ChangeDetectionStrategy, Component, OnInit, signal } from '@angular/core';
|
||||
import { FieldType } from '@ngx-formly/material';
|
||||
import { MATERIAL_ICONS } from '../../../ui/material-icons.const';
|
||||
import { FormlyFieldConfig, FormlyModule } from '@ngx-formly/core';
|
||||
|
|
@ -29,7 +29,7 @@ import { isSingleEmoji } from '../../../util/extract-first-emoji';
|
|||
MatTooltip,
|
||||
],
|
||||
})
|
||||
export class IconInputComponent extends FieldType<FormlyFieldConfig> {
|
||||
export class IconInputComponent extends FieldType<FormlyFieldConfig> implements OnInit {
|
||||
filteredIcons = signal<string[]>([]);
|
||||
isEmoji = signal(false);
|
||||
|
||||
|
|
@ -40,8 +40,8 @@ export class IconInputComponent extends FieldType<FormlyFieldConfig> {
|
|||
return this.to.type || 'text';
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.isEmoji.set(containsEmoji(this.formControl.value))
|
||||
ngOnInit(): void {
|
||||
this.isEmoji.set(containsEmoji(this.formControl.value));
|
||||
}
|
||||
|
||||
trackByIndex(i: number, p: any): number {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue