Browse Source

Disable icon title click event

pull/5452/head
ArtemDzhereleiko 5 years ago
parent
commit
560e3fe1df
  1. 18
      ui-ngx/src/app/shared/components/material-icon-select.component.ts

18
ui-ngx/src/app/shared/components/material-icon-select.component.ts

@ -92,14 +92,16 @@ export class MaterialIconSelectComponent extends PageComponent implements OnInit
}
openIconDialog() {
this.dialogs.materialIconPicker(this.materialIconFormGroup.get('icon').value).subscribe(
(icon) => {
if (icon) {
this.materialIconFormGroup.patchValue(
{icon}, {emitEvent: true}
);
if (!this.disabled) {
this.dialogs.materialIconPicker(this.materialIconFormGroup.get('icon').value).subscribe(
(icon) => {
if (icon) {
this.materialIconFormGroup.patchValue(
{icon}, {emitEvent: true}
);
}
}
}
);
);
}
}
}

Loading…
Cancel
Save