feat(console): GitHub identity provider template (#5403)

Github idp template for console
This commit is contained in:
Max Peintner
2023-03-13 10:01:09 +00:00
committed by GitHub
parent eb4f7c5d7c
commit f55877eb70
23 changed files with 657 additions and 23 deletions
@@ -3,7 +3,7 @@ import { Location } from '@angular/common';
import { Component, Injector, Type } from '@angular/core';
import { AbstractControl, FormControl, FormGroup, Validators } from '@angular/forms';
import { MatLegacyChipInputEvent as MatChipInputEvent } from '@angular/material/legacy-chips';
import { ActivatedRoute, Router } from '@angular/router';
import { ActivatedRoute } from '@angular/router';
import { take } from 'rxjs';
import {
AddGoogleProviderRequest as AdminAddGoogleProviderRequest,
@@ -45,7 +45,6 @@ export class ProviderGoogleComponent {
public updateClientSecret: boolean = false;
constructor(
private router: Router,
private route: ActivatedRoute,
private toast: ToastService,
private injector: Injector,
@@ -135,7 +134,7 @@ export class ProviderGoogleComponent {
.then((idp) => {
setTimeout(() => {
this.loading = false;
this.router.navigate(['/org-settings'], { queryParams: { id: 'idp' } });
this.close();
}, 2000);
})
.catch((error) => {
@@ -156,7 +155,7 @@ export class ProviderGoogleComponent {
.then((idp) => {
setTimeout(() => {
this.loading = false;
this.router.navigate(['/settings'], { queryParams: { id: 'idp' } });
this.close();
}, 2000);
})
.catch((error) => {
@@ -186,7 +185,7 @@ export class ProviderGoogleComponent {
.then((idp) => {
setTimeout(() => {
this.loading = false;
this.router.navigate(['/org-settings'], { queryParams: { id: 'idp' } });
this.close();
}, 2000);
})
.catch((error) => {
@@ -211,7 +210,7 @@ export class ProviderGoogleComponent {
.then((idp) => {
setTimeout(() => {
this.loading = false;
this.router.navigate(['/settings'], { queryParams: { id: 'idp' } });
this.close();
}, 2000);
})
.catch((error) => {