From 8bd4a1edcccdbf3bc97d261e9acf20ccf5849487 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Oct 2022 09:10:07 +0200 Subject: Fix import link --- .../src/app/shared/shared-main/buttons/action-dropdown.component.html | 2 +- .../src/app/shared/shared-main/buttons/action-dropdown.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/shared-main/buttons') diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html index 37cf63fcd..cdcfb9a48 100644 --- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html @@ -26,7 +26,7 @@ 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 749773f8a..ad55677d8 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,5 @@ import { Component, Input } from '@angular/core' +import { Params } from '@angular/router' import { GlobalIconName } from '@app/shared/shared-icons' export type DropdownAction = { @@ -7,7 +8,10 @@ export type DropdownAction = { description?: string title?: string handler?: (a: T) => any + linkBuilder?: (a: T) => (string | number)[] + queryParamsBuilder?: (a: T) => Params + isDisplayed?: (a: T) => boolean class?: string[] -- cgit v1.2.3