aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/buttons/button.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/button.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/button.component.ts')
-rw-r--r--client/src/app/shared/shared-main/buttons/button.component.ts5
1 files changed, 3 insertions, 2 deletions
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 @@
1import { Component, Input, OnChanges } from '@angular/core' 1import { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/core'
2import { GlobalIconName } from '@app/shared/shared-icons' 2import { 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
10export class ButtonComponent implements OnChanges { 11export class ButtonComponent implements OnChanges {