aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/buttons/delete-button.component.ts
blob: 8e285d98282616e398504245c6e63bacc71338f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Component, Input } from '@angular/core'
import { I18n } from '@ngx-translate/i18n-polyfill'

@Component({
  selector: 'my-delete-button',
  styleUrls: [ './button.component.scss' ],
  templateUrl: './delete-button.component.html'
})

export class DeleteButtonComponent {
  @Input() label: string

  constructor (private i18n: I18n) { }

  getTitle () {
    return this.label || this.i18n('Delete')
  }
}