Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
venkykandagaddala committed Aug 28, 2024
1 parent 4c3003e commit beb8d00
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ export class CreateEventComponent implements OnInit {
this.dialogRef.afterClosed().subscribe(() => {
setTimeout(() => {
this.router.navigate([`/app/home/events`])
}, 700)
}, 700)
})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export class EditEventComponent implements OnInit {
this.displayLoader = false
this.openSnackbar('Event details are successfuly updated.')
this.router.navigate([`/app/home/events`])
}, 5000)
}, 5000)
}
},
(err: any) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ export class RequestCopyDetailsComponent implements OnInit {
competencySubtheme!: FormControl

constructor(private formBuilder: FormBuilder,
private requestService: RequestServiceService,
private activatedRouter: ActivatedRoute,
private snackBar: MatSnackBar,
private router: Router,
public dialog: MatDialog
private requestService: RequestServiceService,
private activatedRouter: ActivatedRoute,
private snackBar: MatSnackBar,
private router: Router,
public dialog: MatDialog
) {

this.currentUser = sessionStorage.getItem('idDetails') ? sessionStorage.getItem('idDetails') : ''
Expand Down Expand Up @@ -652,9 +652,9 @@ export class RequestCopyDetailsComponent implements OnInit {
this.router.navigateByUrl('/app/home/all-request')
this.snackBar.open('Request submitted successfully ')
}
}, 1000)
}, 1000)
},
(error: any) => {
(error: any) => {
this.dialogRefs.close({ error })
this.snackBar.open('Request Failed')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class EditSectorComponent implements OnInit {
})
}
}
}, error => {
}, error => {
this.snackBar.open(error, 'X', { duration: sectorConstants.duration })
})
}
Expand Down Expand Up @@ -110,7 +110,7 @@ export class EditSectorComponent implements OnInit {
this.router.navigate([`/app/home/sectors`])
}
this.loading = false
}, eResp => {
}, eResp => {
if (eResp && eResp.error && eResp.error.responseCode === 'BAD_REQUEST') {
this.snackBar.open(eResp.error.params.errmsg)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export function preventHtmlAndJs(): ValidatorFn {
return (control: AbstractControl): ValidationErrors | null => {
const value = control.value
if (value && value.match(/<[^>]*>|(function[^\s]+)|(javascript:[^\s]+)/i)) {
return { 'noHtml': true }
return { noHtml: true }
}
return null
}
}
}

0 comments on commit beb8d00

Please sign in to comment.