aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/buttons/action-dropdown.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-25 14:42:18 +0200
committerChocobozzz <me@florianbigard.com>2022-10-25 14:42:18 +0200
commit34ba86a8b481e0071c5253fcd562911a48688352 (patch)
tree4310323b7e627985f5dad482a1c2ff9a973ef9dd /client/src/app/shared/shared-main/buttons/action-dropdown.component.ts
parentaa887096f9a305568dc3a846d0c9cdf7e45f1c67 (diff)
downloadPeerTube-34ba86a8b481e0071c5253fcd562911a48688352.tar.gz
PeerTube-34ba86a8b481e0071c5253fcd562911a48688352.tar.zst
PeerTube-34ba86a8b481e0071c5253fcd562911a48688352.zip
Use onpush strategy for dropdown
Diffstat (limited to 'client/src/app/shared/shared-main/buttons/action-dropdown.component.ts')
-rw-r--r--client/src/app/shared/shared-main/buttons/action-dropdown.component.ts5
1 files changed, 3 insertions, 2 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 @@
1import { Component, Input } from '@angular/core' 1import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2import { Params } from '@angular/router' 2import { Params } from '@angular/router'
3import { GlobalIconName } from '@app/shared/shared-icons' 3import { 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
31export class ActionDropdownComponent<T> { 32export class ActionDropdownComponent<T> {