aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/buttons/edit-button.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-10 10:46:20 +0200
committerChocobozzz <me@florianbigard.com>2022-06-10 13:51:12 +0200
commitdb66f3914bad31a21df5d7ffb3452b80655d6794 (patch)
tree36991e8b93b1b660222a432d00c256aa6f707d9c /client/src/app/shared/shared-main/buttons/edit-button.component.ts
parentac30ddd739d32ee69ce048656c0ffcf444b91513 (diff)
downloadPeerTube-db66f3914bad31a21df5d7ffb3452b80655d6794.tar.gz
PeerTube-db66f3914bad31a21df5d7ffb3452b80655d6794.tar.zst
PeerTube-db66f3914bad31a21df5d7ffb3452b80655d6794.zip
Refactor button components
Diffstat (limited to 'client/src/app/shared/shared-main/buttons/edit-button.component.ts')
-rw-r--r--client/src/app/shared/shared-main/buttons/edit-button.component.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-main/buttons/edit-button.component.ts b/client/src/app/shared/shared-main/buttons/edit-button.component.ts
index 24c8625ff..0049dfa64 100644
--- a/client/src/app/shared/shared-main/buttons/edit-button.component.ts
+++ b/client/src/app/shared/shared-main/buttons/edit-button.component.ts
@@ -2,8 +2,13 @@ import { Component, Input, OnInit } from '@angular/core'
2 2
3@Component({ 3@Component({
4 selector: 'my-edit-button', 4 selector: 'my-edit-button',
5 styleUrls: [ './button.component.scss' ], 5 template: `
6 templateUrl: './edit-button.component.html' 6 <my-button
7 icon="edit" className="grey-button-link"
8 [label]="label" [title]="title" [responsiveLabel]="responsiveLabel"
9 [routerLink]="routerLink"
10 ></my-button>
11 `
7}) 12})
8export class EditButtonComponent implements OnInit { 13export class EditButtonComponent implements OnInit {
9 @Input() label: string 14 @Input() label: string