From bb152476c819e4c7487d080433c616f0d523e049 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 14 Apr 2020 10:55:34 +0200 Subject: Refactor follow/mute as modals in admin, add actions in abuse list --- .../app/shared/buttons/action-dropdown.component.html | 16 +++++++++++++--- .../app/shared/buttons/action-dropdown.component.scss | 4 ++++ .../src/app/shared/buttons/action-dropdown.component.ts | 1 + 3 files changed, 18 insertions(+), 3 deletions(-) (limited to 'client/src/app/shared/buttons') diff --git a/client/src/app/shared/buttons/action-dropdown.component.html b/client/src/app/shared/buttons/action-dropdown.component.html index cd993db9f..14cfe9a22 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.html +++ b/client/src/app/shared/buttons/action-dropdown.component.html @@ -24,17 +24,27 @@ - + + + diff --git a/client/src/app/shared/buttons/action-dropdown.component.scss b/client/src/app/shared/buttons/action-dropdown.component.scss index 442c90984..7a030f32c 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.scss +++ b/client/src/app/shared/buttons/action-dropdown.component.scss @@ -51,6 +51,10 @@ } .dropdown-menu { + .dropdown-header { + padding: 0.2rem 1rem; + } + .dropdown-item { display: flex; cursor: pointer; diff --git a/client/src/app/shared/buttons/action-dropdown.component.ts b/client/src/app/shared/buttons/action-dropdown.component.ts index 6649b092a..8fcaa38b9 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.ts +++ b/client/src/app/shared/buttons/action-dropdown.component.ts @@ -9,6 +9,7 @@ export type DropdownAction = { handler?: (a: T) => any linkBuilder?: (a: T) => (string | number)[] isDisplayed?: (a: T) => boolean + isHeader?: boolean } export type DropdownButtonSize = 'normal' | 'small' -- cgit v1.2.3