Removed oauth2ClientInfos for toggles
This commit is contained in:
		
							parent
							
								
									7edba5edb6
								
							
						
					
					
						commit
						6cd2fdfe33
					
				@ -112,12 +112,9 @@ export class DomainTableConfigResolver  {
 | 
			
		||||
      $event.stopPropagation();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const modifiedDomain: DomainInfo = {
 | 
			
		||||
      ...domain,
 | 
			
		||||
      oauth2Enabled: !domain.oauth2Enabled
 | 
			
		||||
    };
 | 
			
		||||
    const { oauth2ClientInfos, oauth2Enabled, ...updatedDomain } = domain;
 | 
			
		||||
 | 
			
		||||
    this.domainService.saveDomain(modifiedDomain, null,
 | 
			
		||||
    this.domainService.saveDomain({ ...updatedDomain, oauth2Enabled: !oauth2Enabled }, null,
 | 
			
		||||
      {ignoreLoading: true})
 | 
			
		||||
      .subscribe((result) => {
 | 
			
		||||
        domain.oauth2Enabled = result.oauth2Enabled;
 | 
			
		||||
@ -130,12 +127,9 @@ export class DomainTableConfigResolver  {
 | 
			
		||||
      $event.stopPropagation();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const modifiedDomain: DomainInfo = {
 | 
			
		||||
      ...domain,
 | 
			
		||||
      propagateToEdge: !domain.propagateToEdge
 | 
			
		||||
    };
 | 
			
		||||
    const { oauth2ClientInfos, propagateToEdge, ...updatedDomain } = domain;
 | 
			
		||||
 | 
			
		||||
    this.domainService.saveDomain(modifiedDomain, null,
 | 
			
		||||
    this.domainService.saveDomain({ ...updatedDomain, propagateToEdge: !propagateToEdge }, null,
 | 
			
		||||
      {ignoreLoading: true})
 | 
			
		||||
      .subscribe((result) => {
 | 
			
		||||
        domain.propagateToEdge = result.propagateToEdge;
 | 
			
		||||
 | 
			
		||||
@ -80,11 +80,7 @@ export interface Domain extends BaseData<DomainId>, HasTenantId {
 | 
			
		||||
  propagateToEdge: boolean;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export interface HasOauth2Clients {
 | 
			
		||||
  oauth2ClientInfos?: Array<OAuth2ClientInfo> | Array<string>;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export interface DomainInfo extends Domain, HasOauth2Clients {
 | 
			
		||||
export interface DomainInfo extends Domain {
 | 
			
		||||
  oauth2ClientInfos?: Array<OAuth2ClientInfo> | Array<string>;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user