aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/utils.ts
blob: c3189a570500680ed132d83593adee7ae8c8a8a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { DatePipe } from '@angular/common'

export class Utils {

  static dateToHuman (date: String) {
    return new DatePipe('en').transform(date, 'medium')
  }

  static getRowDeleteButton () {
    return '<span class="glyphicon glyphicon-remove glyphicon-black"></span>'
  }

  static getRowEditButton () {
    return '<span class="glyphicon glyphicon-pencil glyphicon-black"></span>'
  }
}