X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fbuttons%2Fdelete-button.component.ts;h=0ee7d3757451fe463849fd1c5518fe000bdbecf0;hb=d12b40fb96d56786a96c06a621f3d8e0a0d24f4a;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..0ee7d3757 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,31 +1,29 @@
import { Component, Input, OnInit } from '@angular/core'
-import { I18n } from '@ngx-translate/i18n-polyfill'
@Component({
selector: 'my-delete-button',
- styleUrls: [ './button.component.scss' ],
- templateUrl: './delete-button.component.html'
+ template: `
+
+ `
})
-
export class DeleteButtonComponent implements OnInit {
@Input() label: string
@Input() title: string
-
- constructor (private i18n: I18n) { }
+ @Input() responsiveLabel = false
+ @Input() disabled: boolean
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')
-
- if (!this.title) {
- this.title = this.label
- }
+ this.label = $localize`Delete`
}
}
}