diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-10 10:46:20 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-10 13:51:12 +0200 |
commit | db66f3914bad31a21df5d7ffb3452b80655d6794 (patch) | |
tree | 36991e8b93b1b660222a432d00c256aa6f707d9c /client/src/app/shared/shared-main/buttons/edit-button.component.ts | |
parent | ac30ddd739d32ee69ce048656c0ffcf444b91513 (diff) | |
download | PeerTube-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.ts | 9 |
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 | }) |
8 | export class EditButtonComponent implements OnInit { | 13 | export class EditButtonComponent implements OnInit { |
9 | @Input() label: string | 14 | @Input() label: string |