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 + client/src/app/shared/shared.module.ts | 2 ++ 4 files changed, 20 insertions(+), 3 deletions(-) (limited to 'client/src/app/shared') 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' diff --git a/client/src/app/shared/shared.module.ts b/client/src/app/shared/shared.module.ts index a952880a6..01735c187 100644 --- a/client/src/app/shared/shared.module.ts +++ b/client/src/app/shared/shared.module.ts @@ -107,6 +107,7 @@ import { InputSwitchModule } from 'primeng/inputswitch' import { MyAccountVideoSettingsComponent } from '@app/+my-account/my-account-settings/my-account-video-settings' import { MyAccountInterfaceSettingsComponent } from '@app/+my-account/my-account-settings/my-account-interface' import { ActorAvatarInfoComponent } from '@app/+my-account/shared/actor-avatar-info.component' +import { BatchDomainsValidatorsService } from '@app/+admin/config/shared/batch-domains-validators.service' @NgModule({ imports: [ @@ -297,6 +298,7 @@ import { ActorAvatarInfoComponent } from '@app/+my-account/shared/actor-avatar-i LoginValidatorsService, ResetPasswordValidatorsService, UserValidatorsService, + BatchDomainsValidatorsService, VideoPlaylistValidatorsService, VideoAbuseValidatorsService, VideoChannelValidatorsService, -- cgit v1.2.3