X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fbuttons%2Fdelete-button.component.ts;h=c091f5309e40801c62a38354bb9346f33048b09f;hb=faf7eab7d9528451570a26e27093159045346064;hp=aced0f881308b788bbe2d3448b8af4c81505e794;hpb=30814423ae98b6ac5f7407fc53cffe32aae57124;p=github%2FChocobozzz%2FPeerTube.git
diff --git a/client/src/app/shared/shared-main/buttons/delete-button.component.ts b/client/src/app/shared/shared-main/buttons/delete-button.component.ts
index aced0f881..c091f5309 100644
--- a/client/src/app/shared/shared-main/buttons/delete-button.component.ts
+++ b/client/src/app/shared/shared-main/buttons/delete-button.component.ts
@@ -1,5 +1,4 @@
import { Component, Input, OnInit } from '@angular/core'
-import { I18n } from '@ngx-translate/i18n-polyfill'
@Component({
selector: 'my-delete-button',
@@ -10,18 +9,17 @@ import { I18n } from '@ngx-translate/i18n-polyfill'
export class DeleteButtonComponent implements OnInit {
@Input() label: string
@Input() title: string
-
- constructor (private i18n: I18n) { }
+ @Input() responsiveLabel = false
ngOnInit () {
// No label
if (this.label === undefined && !this.title) {
- this.title = this.i18n('Delete')
+ this.title = $localize`Delete`
}
// Use default label
if (this.label === '') {
- this.label = this.i18n('Delete')
+ this.label = $localize`Delete`
if (!this.title) {
this.title = this.label