diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-03 10:02:55 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-03 10:02:55 +0200 |
commit | 60709df53602def422e8c32509c27c65b52cb1bd (patch) | |
tree | 83ec16f4204fe00c4368083a64b3050775f08a74 /client/src/app/shared/buttons/delete-button.component.ts | |
parent | 38d937002a731ecc8edc6b81018e27663580ee96 (diff) | |
download | PeerTube-60709df53602def422e8c32509c27c65b52cb1bd.tar.gz PeerTube-60709df53602def422e8c32509c27c65b52cb1bd.tar.zst PeerTube-60709df53602def422e8c32509c27c65b52cb1bd.zip |
Fix Delete title button
Diffstat (limited to 'client/src/app/shared/buttons/delete-button.component.ts')
-rw-r--r-- | client/src/app/shared/buttons/delete-button.component.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/shared/buttons/delete-button.component.ts b/client/src/app/shared/buttons/delete-button.component.ts index cd2bcccdf..8e285d982 100644 --- a/client/src/app/shared/buttons/delete-button.component.ts +++ b/client/src/app/shared/buttons/delete-button.component.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import { Component, Input } from '@angular/core' | 1 | import { Component, Input } from '@angular/core' |
2 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
2 | 3 | ||
3 | @Component({ | 4 | @Component({ |
4 | selector: 'my-delete-button', | 5 | selector: 'my-delete-button', |
@@ -8,4 +9,10 @@ import { Component, Input } from '@angular/core' | |||
8 | 9 | ||
9 | export class DeleteButtonComponent { | 10 | export class DeleteButtonComponent { |
10 | @Input() label: string | 11 | @Input() label: string |
12 | |||
13 | constructor (private i18n: I18n) { } | ||
14 | |||
15 | getTitle () { | ||
16 | return this.label || this.i18n('Delete') | ||
17 | } | ||
11 | } | 18 | } |