Forgot to lint earlier
This commit is contained in:
1 parent
d44c5b3e02
commit
facf2df91e
69 files changed
+411
-424
No files matched your search
@@ -1,5 +1,10 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
|
||||
import {
|
||||
UntypedFormArray,
|
||||
UntypedFormBuilder,
|
||||
UntypedFormControl,
|
||||
UntypedFormGroup,
|
||||
} from '@angular/forms';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import * as moment from 'moment';
|
||||
@@ -139,17 +144,17 @@ export class SettingsComponent implements OnInit {
|
||||
if (this.lockOlder && this.olderRolling) {
|
||||
item.start.days = +(this.lockInfoForm.get('olderDays') as UntypedFormControl).value;
|
||||
} else if (this.lockOlder && !this.olderRolling) {
|
||||
item.start.date = moment((this.lockInfoForm.get('olderDate') as UntypedFormControl).value).format(
|
||||
'DD-MMM-YYYY',
|
||||
);
|
||||
item.start.date = moment(
|
||||
(this.lockInfoForm.get('olderDate') as UntypedFormControl).value,
|
||||
).format('DD-MMM-YYYY');
|
||||
}
|
||||
if (this.lockNewer && this.newerRolling) {
|
||||
item.finish.days = +(this.lockInfoForm.get('newerDays') as UntypedFormControl).value;
|
||||
}
|
||||
if (this.lockNewer && !this.newerRolling) {
|
||||
item.finish.date = moment((this.lockInfoForm.get('newerDate') as UntypedFormControl).value).format(
|
||||
'DD-MMM-YYYY',
|
||||
);
|
||||
item.finish.date = moment(
|
||||
(this.lockInfoForm.get('newerDate') as UntypedFormControl).value,
|
||||
).format('DD-MMM-YYYY');
|
||||
}
|
||||
const atArray = this.lockInfoForm.get('accountTypes') as UntypedFormArray;
|
||||
this.accountTypes.forEach((at, index) => {
|
||||
|
||||
Reference in new issue
Block a user