From 141b177db088891e84040f68aa95008fb52f1d44 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 9 Aug 2018 17:51:25 +0200 Subject: Add ability to ban/unban users --- client/src/app/shared/buttons/action-dropdown.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared/buttons/action-dropdown.component.ts') diff --git a/client/src/app/shared/buttons/action-dropdown.component.ts b/client/src/app/shared/buttons/action-dropdown.component.ts index 407d24b80..17f9cc618 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.ts +++ b/client/src/app/shared/buttons/action-dropdown.component.ts @@ -1,11 +1,10 @@ import { Component, Input } from '@angular/core' export type DropdownAction = { - type: 'custom' | 'delete' | 'edit' label?: string handler?: (T) => any linkBuilder?: (T) => (string | number)[] - iconClass?: string + isDisplayed?: (T) => boolean } @Component({ @@ -17,4 +16,5 @@ export type DropdownAction = { export class ActionDropdownComponent { @Input() actions: DropdownAction[] = [] @Input() entry: T + @Input() placement = 'left' } -- cgit v1.2.3