Skip to content

Commit beb8d00

Browse files
lint fixes
1 parent 4c3003e commit beb8d00

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

project/ws/app/src/lib/routes/home/routes/events/create-event/create-event.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ export class CreateEventComponent implements OnInit {
581581
this.dialogRef.afterClosed().subscribe(() => {
582582
setTimeout(() => {
583583
this.router.navigate([`/app/home/events`])
584-
}, 700)
584+
}, 700)
585585
})
586586
}
587587

project/ws/app/src/lib/routes/home/routes/events/edit-event/edit-event.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ export class EditEventComponent implements OnInit {
575575
this.displayLoader = false
576576
this.openSnackbar('Event details are successfuly updated.')
577577
this.router.navigate([`/app/home/events`])
578-
}, 5000)
578+
}, 5000)
579579
}
580580
},
581581
(err: any) => {

project/ws/app/src/lib/routes/home/routes/request/request-copy-details/request-copy-details.component.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ export class RequestCopyDetailsComponent implements OnInit {
7171
competencySubtheme!: FormControl
7272

7373
constructor(private formBuilder: FormBuilder,
74-
private requestService: RequestServiceService,
75-
private activatedRouter: ActivatedRoute,
76-
private snackBar: MatSnackBar,
77-
private router: Router,
78-
public dialog: MatDialog
74+
private requestService: RequestServiceService,
75+
private activatedRouter: ActivatedRoute,
76+
private snackBar: MatSnackBar,
77+
private router: Router,
78+
public dialog: MatDialog
7979
) {
8080

8181
this.currentUser = sessionStorage.getItem('idDetails') ? sessionStorage.getItem('idDetails') : ''
@@ -652,9 +652,9 @@ export class RequestCopyDetailsComponent implements OnInit {
652652
this.router.navigateByUrl('/app/home/all-request')
653653
this.snackBar.open('Request submitted successfully ')
654654
}
655-
}, 1000)
655+
}, 1000)
656656
},
657-
(error: any) => {
657+
(error: any) => {
658658
this.dialogRefs.close({ error })
659659
this.snackBar.open('Request Failed')
660660

project/ws/app/src/lib/routes/home/routes/sectors/edit-sector/edit-sector.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class EditSectorComponent implements OnInit {
8080
})
8181
}
8282
}
83-
}, error => {
83+
}, error => {
8484
this.snackBar.open(error, 'X', { duration: sectorConstants.duration })
8585
})
8686
}
@@ -110,7 +110,7 @@ export class EditSectorComponent implements OnInit {
110110
this.router.navigate([`/app/home/sectors`])
111111
}
112112
this.loading = false
113-
}, eResp => {
113+
}, eResp => {
114114
if (eResp && eResp.error && eResp.error.responseCode === 'BAD_REQUEST') {
115115
this.snackBar.open(eResp.error.params.errmsg)
116116
}

project/ws/app/src/lib/routes/home/validators/prevent-html-and-js.validator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export function preventHtmlAndJs(): ValidatorFn {
55
return (control: AbstractControl): ValidationErrors | null => {
66
const value = control.value
77
if (value && value.match(/<[^>]*>|(function[^\s]+)|(javascript:[^\s]+)/i)) {
8-
return { 'noHtml': true }
8+
return { noHtml: true }
99
}
1010
return null
1111
}
12-
}
12+
}

0 commit comments

Comments
 (0)