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 cdcfb9a48..474baafd7 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 ad55677d8..e6164fced 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 @@ -48,6 +48,12 @@ export class ActionDropdownComponent { return [ this.actions as DropdownAction[] ] } + getQueryParams (action: DropdownAction, entry: T) { + if (action.queryParamsBuilder) return action.queryParamsBuilder(entry) + + return {} + } + areActionsDisplayed (actions: Array | DropdownAction[]>, entry: T): boolean { return actions.some(a => { if (Array.isArray(a)) return this.areActionsDisplayed(a, entry)