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() { openIconDialog() {
this.dialogs.materialIconPicker(this.materialIconFormGroup.get('icon').value).subscribe( if (!this.disabled) {
(icon) => { this.dialogs.materialIconPicker(this.materialIconFormGroup.get('icon').value).subscribe(
if (icon) { (icon) => {
this.materialIconFormGroup.patchValue( if (icon) {
{icon}, {emitEvent: true} this.materialIconFormGroup.patchValue(
); {icon}, {emitEvent: true}
);
}
} }
} );
); }
} }
} }

Loading…
Cancel
Save