Fix lint
authorRigel Kent <sendmemail@rigelk.eu>
Mon, 13 Apr 2020 23:38:41 +0000 (01:38 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Mon, 13 Apr 2020 23:38:41 +0000 (01:38 +0200)
client/src/app/+admin/users/user-edit/user-edit.ts
client/src/app/shared/angular/from-now.pipe.ts

index 18ca5805f71139c581b238f2c514ecb73d61d1d8..ae208e6241c5b0183dc0c9037047a636c1803a4c 100644 (file)
@@ -94,10 +94,18 @@ export abstract class UserEdit extends FormReactive implements OnInit {
   protected buildQuotaOptions () {
     // These are used by a HTML select, so convert key into strings
     this.videoQuotaOptions = this.configService
-                                 .videoQuotaOptions.map(q => ({ value: q.value?.toString(), label: q.label, disabled: q.disabled }))
+                                 .videoQuotaOptions.map(q => ({ 
+                                   value: q.value?.toString(),
+                                   label: q.label,
+                                   disabled: q.disabled
+                                  }))
 
     this.videoQuotaDailyOptions = this.configService
-                                      .videoQuotaDailyOptions.map(q => ({ value: q.value?.toString(), label: q.label, disabled: q.disabled }))
+                                      .videoQuotaDailyOptions.map(q => ({
+                                        value: q.value?.toString(),
+                                        label: q.label,
+                                        disabled: q.disabled
+                                      }))
 
     console.log(
       this.videoQuotaOptions,
index 07f114ab6ca710a5a19c0d60163257d28670fc1e..9851468ee993538cb23f2e25302d1ad2d581f9e5 100644 (file)
@@ -10,7 +10,7 @@ export class FromNowPipe implements PipeTransform {
   transform (arg: number | Date | string) {
     const argDate = new Date(arg)
     const seconds = Math.floor((Date.now() - argDate.getTime()) / 1000)
-    
+
     let interval = Math.floor(seconds / 31536000)
     if (interval > 1) return this.i18n('{{interval}} years ago', { interval })
     if (interval === 1) return this.i18n('{{interval}} year ago', { interval })