X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fbuttons%2Fedit-button.component.ts;h=24c8625ffa30d68cd1aa63d693f430fd78de335f;hb=8afade2607e072221a8ff8c108bd1787a3501a2d;hp=d8ae39b84c58c290a206aa7a97bb54bd9a60c6bb;hpb=30814423ae98b6ac5f7407fc53cffe32aae57124;p=github%2FChocobozzz%2FPeerTube.git
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 d8ae39b84..24c8625ff 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
@@ -1,28 +1,25 @@
import { Component, Input, OnInit } from '@angular/core'
-import { I18n } from '@ngx-translate/i18n-polyfill'
@Component({
selector: 'my-edit-button',
styleUrls: [ './button.component.scss' ],
templateUrl: './edit-button.component.html'
})
-
export class EditButtonComponent implements OnInit {
@Input() label: string
@Input() title: string
@Input() routerLink: string[] | string = []
-
- constructor (private i18n: I18n) { }
+ @Input() responsiveLabel = false
ngOnInit () {
// No label
if (this.label === undefined && !this.title) {
- this.title = this.i18n('Update')
+ this.title = $localize`Update`
}
// Use default label
if (this.label === '') {
- this.label = this.i18n('Update')
+ this.label = $localize`Update`
if (!this.title) {
this.title = this.label