]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/utils.ts
Fix http token interceptor
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / utils.ts
index 5ab41fe5a3fac07c11f74c2bf59f48b9e6e5cf16..7c8ae2e3e5e664c135925c38b801fe3953ad0afc 100644 (file)
@@ -1,12 +1,8 @@
-import { DatePipe } from '@angular/common';
+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 dateToHuman (date: Date) {
+    return new DatePipe('en').transform(date, 'medium')
   }
 }