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=c091f5309e40801c62a38354bb9346f33048b09f;hpb=c27463a603186b623500b03c6a56b330a6568350;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 c091f5309..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 @@ -2,17 +2,21 @@ import { Component, Input, OnInit } from '@angular/core' @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 @Input() responsiveLabel = false + @Input() disabled: boolean ngOnInit () { - // No label if (this.label === undefined && !this.title) { this.title = $localize`Delete` } @@ -20,10 +24,6 @@ export class DeleteButtonComponent implements OnInit { // Use default label if (this.label === '') { this.label = $localize`Delete` - - if (!this.title) { - this.title = this.label - } } } }