diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-21 10:19:42 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-21 10:19:42 +0200 |
commit | a2c3564a31268e4e60f05952aa3731e114ac1e30 (patch) | |
tree | f0bf29c8b304ec61ded60328f1a488338c2d4c8e /client/src/app/shared/shared-main/buttons/action-dropdown.component.ts | |
parent | 5196817c5d7cf86b35f3fa2cfe108ba283944482 (diff) | |
download | PeerTube-a2c3564a31268e4e60f05952aa3731e114ac1e30.tar.gz PeerTube-a2c3564a31268e4e60f05952aa3731e114ac1e30.tar.zst PeerTube-a2c3564a31268e4e60f05952aa3731e114ac1e30.zip |
Improve moderation dropdown UX
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.ts | 2 |
1 files changed, 2 insertions, 0 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 36d7d6229..67ac6e1aa 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 | |||
@@ -9,6 +9,8 @@ export type DropdownAction<T> = { | |||
9 | handler?: (a: T) => any | 9 | handler?: (a: T) => any |
10 | linkBuilder?: (a: T) => (string | number)[] | 10 | linkBuilder?: (a: T) => (string | number)[] |
11 | isDisplayed?: (a: T) => boolean | 11 | isDisplayed?: (a: T) => boolean |
12 | |||
13 | class?: string[] | ||
12 | isHeader?: boolean | 14 | isHeader?: boolean |
13 | } | 15 | } |
14 | 16 | ||