diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/images/global-icon.component.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/shared/images/global-icon.component.ts b/client/src/app/shared/images/global-icon.component.ts index 03cf3d7ae..5a3db4531 100644 --- a/client/src/app/shared/images/global-icon.component.ts +++ b/client/src/app/shared/images/global-icon.component.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { Component, ElementRef, Input, OnInit } from '@angular/core' | 1 | import { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit } from '@angular/core' |
2 | 2 | ||
3 | const icons = { | 3 | const icons = { |
4 | 'add': require('../../../assets/images/global/add.html'), | 4 | 'add': require('../../../assets/images/global/add.html'), |
@@ -53,7 +53,8 @@ export type GlobalIconName = keyof typeof icons | |||
53 | @Component({ | 53 | @Component({ |
54 | selector: 'my-global-icon', | 54 | selector: 'my-global-icon', |
55 | template: '', | 55 | template: '', |
56 | styleUrls: [ './global-icon.component.scss' ] | 56 | styleUrls: [ './global-icon.component.scss' ], |
57 | changeDetection: ChangeDetectionStrategy.OnPush | ||
57 | }) | 58 | }) |
58 | export class GlobalIconComponent implements OnInit { | 59 | export class GlobalIconComponent implements OnInit { |
59 | @Input() iconName: GlobalIconName | 60 | @Input() iconName: GlobalIconName |