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 3c5b44b commit a49574c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/app/authorize/authorize.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { OauthErrorComponent } from './components/oauth-error/oauth-error.compon
import { AuthorizeComponent } from './pages/authorize/authorize.component'
import { FormAuthorizeComponent } from './components/form-authorize/form-authorize.component'
import { InterstitialsModule } from '../cdk/interstitials/interstitials.module'
import { MatLegacyDialogModule } from '@angular/material/legacy-dialog'

@NgModule({
declarations: [
Expand All @@ -38,7 +37,6 @@ import { MatLegacyDialogModule } from '@angular/material/legacy-dialog'
InfoDropDownModule,
MatProgressBarModule,
InterstitialsModule,
MatLegacyDialogModule,
],
})
export class AuthorizeModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ export class ShareEmailsDomainsDialogComponent extends ShareEmailsDomainsCompone
}

override finishIntertsitial(emails?: string[]) {
this.finish.emit()
if (this.dialogRef.getState() === MatLegacyDialogState.OPEN) {
this.dialogRef.close(emails)
}
this.dialogRef.close(emails)
}

override afterEmailUpdates() {
this.finishIntertsitial()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,21 @@ export class ShareEmailsDomainsComponent {

this.recordEmailsService.postEmails(this.userEmailsJson).subscribe(
(response) => {
if (!this.dialogMode) {
this.afterSummit = true
this.beforeSummit = false
} else {
this.finishIntertsitial(this.domainToMakePublic)
}
setTimeout(() => {}, 10000)
this.afterEmailUpdates()
},
(error) => this.finishIntertsitial()
)
} else {
this.finishIntertsitial()
}
}
afterEmailUpdates() {
this.afterSummit = true
this.beforeSummit = false
setTimeout(() => {
this.finishIntertsitial()
}, 10000)
}

finishIntertsitial(emails?: string[]) {
this.finish.emit()
Expand Down

0 comments on commit a49574c

Please sign in to comment.