mirror of https://github.com/Chocobozzz/PeerTube
Fix Delete title button
parent
38d937002a
commit
60709df536
|
@ -1,4 +1,4 @@
|
|||
<span class="action-button action-button-delete" [title]="label" role="button">
|
||||
<span class="action-button action-button-delete" [title]="getTitle()" role="button">
|
||||
<span class="icon icon-delete-grey"></span>
|
||||
|
||||
<span class="button-label" *ngIf="label">{{ label }}</span>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { Component, Input } from '@angular/core'
|
||||
import { I18n } from '@ngx-translate/i18n-polyfill'
|
||||
|
||||
@Component({
|
||||
selector: 'my-delete-button',
|
||||
|
@ -8,4 +9,10 @@ import { Component, Input } from '@angular/core'
|
|||
|
||||
export class DeleteButtonComponent {
|
||||
@Input() label: string
|
||||
|
||||
constructor (private i18n: I18n) { }
|
||||
|
||||
getTitle () {
|
||||
return this.label || this.i18n('Delete')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<a class="action-button action-button-edit" [routerLink]="routerLink" title="Edit">
|
||||
<a class="action-button action-button-edit" [routerLink]="routerLink" i18n-title title="Edit">
|
||||
<span class="icon icon-edit"></span>
|
||||
|
||||
<span class="button-label" *ngIf="label">{{ label }}</span>
|
||||
|
|
Loading…
Reference in New Issue