From eacb25c4366bcc8fba20f98f93f004fabc6d5578 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Aug 2018 17:36:10 +0200 Subject: Add reason when banning a user --- client/src/app/shared/misc/button.component.scss | 43 ---------------------- .../app/shared/misc/delete-button.component.html | 4 -- .../src/app/shared/misc/delete-button.component.ts | 11 ------ .../src/app/shared/misc/edit-button.component.html | 4 -- .../src/app/shared/misc/edit-button.component.ts | 11 ------ 5 files changed, 73 deletions(-) delete mode 100644 client/src/app/shared/misc/button.component.scss delete mode 100644 client/src/app/shared/misc/delete-button.component.html delete mode 100644 client/src/app/shared/misc/delete-button.component.ts delete mode 100644 client/src/app/shared/misc/edit-button.component.html delete mode 100644 client/src/app/shared/misc/edit-button.component.ts (limited to 'client/src/app/shared/misc') diff --git a/client/src/app/shared/misc/button.component.scss b/client/src/app/shared/misc/button.component.scss deleted file mode 100644 index 343aea207..000000000 --- a/client/src/app/shared/misc/button.component.scss +++ /dev/null @@ -1,43 +0,0 @@ -@import '_variables'; -@import '_mixins'; - -.action-button { - @include peertube-button-link; - - font-size: 15px; - font-weight: $font-semibold; - color: #585858; - background-color: #E5E5E5; - - &:hover { - background-color: #EFEFEF; - } - - .icon { - @include icon(21px); - - position: relative; - top: -2px; - - &.icon-edit { - background-image: url('../../../assets/images/global/edit-grey.svg'); - } - - &.icon-delete-grey { - background-image: url('../../../assets/images/global/delete-grey.svg'); - } - } -} - -// In a table, try to minimize the space taken by this button -@media screen and (max-width: 1400px) { - :host-context(td) { - .action-button { - padding: 0 13px; - } - - .button-label { - display: none; - } - } -} diff --git a/client/src/app/shared/misc/delete-button.component.html b/client/src/app/shared/misc/delete-button.component.html deleted file mode 100644 index 7387d0a88..000000000 --- a/client/src/app/shared/misc/delete-button.component.html +++ /dev/null @@ -1,4 +0,0 @@ - - - {{ label }} - diff --git a/client/src/app/shared/misc/delete-button.component.ts b/client/src/app/shared/misc/delete-button.component.ts deleted file mode 100644 index 2ffd98212..000000000 --- a/client/src/app/shared/misc/delete-button.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component, Input } from '@angular/core' - -@Component({ - selector: 'my-delete-button', - styleUrls: [ './button.component.scss' ], - templateUrl: './delete-button.component.html' -}) - -export class DeleteButtonComponent { - @Input() label = 'Delete' -} diff --git a/client/src/app/shared/misc/edit-button.component.html b/client/src/app/shared/misc/edit-button.component.html deleted file mode 100644 index 78fbc326e..000000000 --- a/client/src/app/shared/misc/edit-button.component.html +++ /dev/null @@ -1,4 +0,0 @@ - - - Edit - diff --git a/client/src/app/shared/misc/edit-button.component.ts b/client/src/app/shared/misc/edit-button.component.ts deleted file mode 100644 index 201a618ec..000000000 --- a/client/src/app/shared/misc/edit-button.component.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Component, Input } from '@angular/core' - -@Component({ - selector: 'my-edit-button', - styleUrls: [ './button.component.scss' ], - templateUrl: './edit-button.component.html' -}) - -export class EditButtonComponent { - @Input() routerLink = [] -} -- cgit v1.2.3