Showing
1 changed file
with
10 additions
and
8 deletions
@@ -92,14 +92,16 @@ export class MaterialIconSelectComponent extends PageComponent implements OnInit | @@ -92,14 +92,16 @@ export class MaterialIconSelectComponent extends PageComponent implements OnInit | ||
92 | } | 92 | } |
93 | 93 | ||
94 | openIconDialog() { | 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 | } |