Skip to content

Commit

Permalink
singin-interstitial
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Nov 25, 2024
1 parent f3bd8ad commit 6035557
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/app/authorize/pages/authorize/authorize.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ export class AuthorizeComponent {
if (
url &&
this.userHasPrivateDomains &&
!this.userHasPublicDomains &&
this.oauthDomainsInterstitialEnabled &&
!this.domainInterstitialHasBeenViewed &&
this.userIsNotImpersonating &&
!this.insidePopUpWindows
!this.userHasPublicDomains
// this.oauthDomainsInterstitialEnabled &&
// !this.domainInterstitialHasBeenViewed &&
// this.userIsNotImpersonating &&
// !this.insidePopUpWindows
) {
this.showAuthorizationComponent = false
this.showInterstital = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class ShareEmailsDomainsDialogComponent extends ShareEmailsDomainsCompone
this.dialogRef.close(emails)
}

override afterEmailUpdates() {
this.finishIntertsitial()
override afterEmailUpdates(emails: string[]) {
this.finishIntertsitial(emails)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ export class ShareEmailsDomainsComponent {

this.recordEmailsService.postEmails(this.userEmailsJson).subscribe(
(response) => {
this.afterEmailUpdates()
this.afterEmailUpdates(this.domainToMakePublic)
},
(error) => this.finishIntertsitial()
)
} else {
this.finishIntertsitial()
}
}
afterEmailUpdates() {
afterEmailUpdates(emails: string[]) {
this.afterSummit = true
this.beforeSummit = false
setTimeout(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class LoginInterstitialsService {
this.interstitialService
.getInterstitialsViewed('SIGN_IN_DOMAIN_INTERSTITIAL')
.subscribe((viewed) => {
this.alreadySawSignDomainInterstitial = viewed
// this.alreadySawSignDomainInterstitial = viewed
})
this.toggleService
.getStateOf('LOGIN_DOMAINS_INTERSTITIAL')
Expand All @@ -43,12 +43,12 @@ export class LoginInterstitialsService {
userRecord.userInfo.EFFECTIVE_USER_ORCID
}
if (
isNotImpersonating &&
// isNotImpersonating &&
userRecord.emails &&
userRecord.emails.emailDomains &&
!this.userHasPublicDomains(userRecord.emails) &&
this.userHasPrivateDomains(userRecord.emails) &&
this.loginDomainsInterstitialEnabled &&
// this.loginDomainsInterstitialEnabled &&
!this.alreadySawSignDomainInterstitial
) {
this.alreadySawSignDomainInterstitial = true
Expand Down

0 comments on commit 6035557

Please sign in to comment.