aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-main/buttons/delete-button.component.ts
blob: 39e31900fa3998423dba23683688bfc3b554575b (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                        
                                                   






                                               
                                                      
                        
 

               

                                      

                                                  
   
 
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'
})

export class DeleteButtonComponent implements OnInit {
  @Input() label: string

  title: string

  constructor (private i18n: I18n) { }

  ngOnInit () {
    this.title = this.label || this.i18n('Delete')
  }
}