mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
!wip fixed lint errors
This commit is contained in:
parent
7a54ec673f
commit
cd2011c6cc
1 changed files with 4 additions and 4 deletions
|
@ -57,15 +57,15 @@ export class NewsletterComponent implements OnInit {
|
||||||
if(match && match.length > 0) {
|
if(match && match.length > 0) {
|
||||||
this.settings.externalEmails.push(this.emailToAdd);
|
this.settings.externalEmails.push(this.emailToAdd);
|
||||||
this.emailToAdd = "";
|
this.emailToAdd = "";
|
||||||
} else{
|
} else {
|
||||||
this.notificationService.error("Please enter a valid email address")
|
this.notificationService.error("Please enter a valid email address");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public deleteEmail(email: string) {
|
public deleteEmail(email: string) {
|
||||||
var index = this.settings.externalEmails.indexOf(email); // <-- Not supported in <IE9
|
const index = this.settings.externalEmails.indexOf(email); // <-- Not supported in <IE9
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
this.settings.externalEmails.splice(index, 1);
|
this.settings.externalEmails.splice(index, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue