diff options
-rw-r--r-- | client/src/app/shared/shared-main/buttons/action-dropdown.component.ts | 5 | ||||
-rw-r--r-- | client/src/app/shared/shared-main/buttons/button.component.ts | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts b/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts index e6164fced..e39fbd66d 100644 --- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { Component, Input } from '@angular/core' | 1 | import { ChangeDetectionStrategy, Component, Input } from '@angular/core' |
2 | import { Params } from '@angular/router' | 2 | import { Params } from '@angular/router' |
3 | import { GlobalIconName } from '@app/shared/shared-icons' | 3 | import { GlobalIconName } from '@app/shared/shared-icons' |
4 | 4 | ||
@@ -25,7 +25,8 @@ export type DropdownDirection = 'horizontal' | 'vertical' | |||
25 | @Component({ | 25 | @Component({ |
26 | selector: 'my-action-dropdown', | 26 | selector: 'my-action-dropdown', |
27 | styleUrls: [ './action-dropdown.component.scss' ], | 27 | styleUrls: [ './action-dropdown.component.scss' ], |
28 | templateUrl: './action-dropdown.component.html' | 28 | templateUrl: './action-dropdown.component.html', |
29 | changeDetection: ChangeDetectionStrategy.OnPush | ||
29 | }) | 30 | }) |
30 | 31 | ||
31 | export class ActionDropdownComponent<T> { | 32 | export class ActionDropdownComponent<T> { |
diff --git a/client/src/app/shared/shared-main/buttons/button.component.ts b/client/src/app/shared/shared-main/buttons/button.component.ts index 10d67831f..1761938ee 100644 --- a/client/src/app/shared/shared-main/buttons/button.component.ts +++ b/client/src/app/shared/shared-main/buttons/button.component.ts | |||
@@ -1,10 +1,11 @@ | |||
1 | import { Component, Input, OnChanges } from '@angular/core' | 1 | import { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/core' |
2 | import { GlobalIconName } from '@app/shared/shared-icons' | 2 | import { GlobalIconName } from '@app/shared/shared-icons' |
3 | 3 | ||
4 | @Component({ | 4 | @Component({ |
5 | selector: 'my-button', | 5 | selector: 'my-button', |
6 | styleUrls: [ './button.component.scss' ], | 6 | styleUrls: [ './button.component.scss' ], |
7 | templateUrl: './button.component.html' | 7 | templateUrl: './button.component.html', |
8 | changeDetection: ChangeDetectionStrategy.OnPush | ||
8 | }) | 9 | }) |
9 | 10 | ||
10 | export class ButtonComponent implements OnChanges { | 11 | export class ButtonComponent implements OnChanges { |