From 28798b5d949826551740fc893d06e6424b77aa6a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 30 Jan 2017 22:41:14 +0100 Subject: Client: replace simple tables by ng2 smart table component --- client/src/app/shared/utils.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 client/src/app/shared/utils.ts (limited to 'client/src/app/shared/utils.ts') diff --git a/client/src/app/shared/utils.ts b/client/src/app/shared/utils.ts new file mode 100644 index 000000000..1dd6f96f0 --- /dev/null +++ b/client/src/app/shared/utils.ts @@ -0,0 +1,12 @@ +import { DatePipe } from '@angular/common'; + +export class Utils { + + static dateToHuman(date: String) { + return new DatePipe('en').transform(date, 'medium') + } + + static getRowDeleteButton() { + return ''; + } +} -- cgit v1.2.3