aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/buttons
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-05-21 11:21:56 +0200
committerChocobozzz <me@florianbigard.com>2019-05-21 11:21:56 +0200
commit432ebe8bddb407bfbe503b782d59b1ee4c0d6842 (patch)
treeb37b83b0edea8655e7fc24326eb520ebb29297fe /client/src/app/shared/buttons
parent73b3aa6429dfb2e31628fa09a479dce318289d7d (diff)
parentb9dde7d96b28a8004a2698f465447f0f9b6b6dbb (diff)
downloadPeerTube-432ebe8bddb407bfbe503b782d59b1ee4c0d6842.tar.gz
PeerTube-432ebe8bddb407bfbe503b782d59b1ee4c0d6842.tar.zst
PeerTube-432ebe8bddb407bfbe503b782d59b1ee4c0d6842.zip
Merge branch 'release/v1.3.0' into develop
Diffstat (limited to 'client/src/app/shared/buttons')
-rw-r--r--client/src/app/shared/buttons/delete-button.component.html2
-rw-r--r--client/src/app/shared/buttons/delete-button.component.ts10
2 files changed, 7 insertions, 5 deletions
diff --git a/client/src/app/shared/buttons/delete-button.component.html b/client/src/app/shared/buttons/delete-button.component.html
index d278e7015..25196fbd5 100644
--- a/client/src/app/shared/buttons/delete-button.component.html
+++ b/client/src/app/shared/buttons/delete-button.component.html
@@ -1,4 +1,4 @@
1<span class="action-button action-button-delete grey-button" [title]="getTitle()" role="button"> 1<span class="action-button action-button-delete grey-button" [title]="title" role="button">
2 <my-global-icon iconName="delete"></my-global-icon> 2 <my-global-icon iconName="delete"></my-global-icon>
3 3
4 <span class="button-label" *ngIf="label">{{ label }}</span> 4 <span class="button-label" *ngIf="label">{{ label }}</span>
diff --git a/client/src/app/shared/buttons/delete-button.component.ts b/client/src/app/shared/buttons/delete-button.component.ts
index 8e285d982..39e31900f 100644
--- a/client/src/app/shared/buttons/delete-button.component.ts
+++ b/client/src/app/shared/buttons/delete-button.component.ts
@@ -1,4 +1,4 @@
1import { Component, Input } from '@angular/core' 1import { Component, Input, OnInit } from '@angular/core'
2import { I18n } from '@ngx-translate/i18n-polyfill' 2import { I18n } from '@ngx-translate/i18n-polyfill'
3 3
4@Component({ 4@Component({
@@ -7,12 +7,14 @@ import { I18n } from '@ngx-translate/i18n-polyfill'
7 templateUrl: './delete-button.component.html' 7 templateUrl: './delete-button.component.html'
8}) 8})
9 9
10export class DeleteButtonComponent { 10export class DeleteButtonComponent implements OnInit {
11 @Input() label: string 11 @Input() label: string
12 12
13 title: string
14
13 constructor (private i18n: I18n) { } 15 constructor (private i18n: I18n) { }
14 16
15 getTitle () { 17 ngOnInit () {
16 return this.label || this.i18n('Delete') 18 this.title = this.label || this.i18n('Delete')
17 } 19 }
18} 20}