Commit 560e3fe1dfb08dc3decd30733dc6814a23bb374e

Authored by ArtemDzhereleiko
1 parent ac310551

Disable icon title click event

... ... @@ -92,14 +92,16 @@ export class MaterialIconSelectComponent extends PageComponent implements OnInit
92 92 }
93 93
94 94 openIconDialog() {
95   - this.dialogs.materialIconPicker(this.materialIconFormGroup.get('icon').value).subscribe(
96   - (icon) => {
97   - if (icon) {
98   - this.materialIconFormGroup.patchValue(
99   - {icon}, {emitEvent: true}
100   - );
  95 + if (!this.disabled) {
  96 + this.dialogs.materialIconPicker(this.materialIconFormGroup.get('icon').value).subscribe(
  97 + (icon) => {
  98 + if (icon) {
  99 + this.materialIconFormGroup.patchValue(
  100 + {icon}, {emitEvent: true}
  101 + );
  102 + }
101 103 }
102   - }
103   - );
  104 + );
  105 + }
104 106 }
105 107 }
... ...