Browse Source
			
			
			Feature/move set Ghostfolio API key to experimental (#4147)
			
				* Move set Ghostfolio API key to experimental
			
			
				pull/4149/head^2
			
			
		 
		
			
				
					
						
						Thomas Kaul
					
					10 months ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: B5690EEEBB952194
						
					
				
			
		
		
		
	
		
			
				 3 changed files with 
18 additions and 
12 deletions
			 
			
		 
		
			
				- 
					
					
					 
					apps/client/src/app/components/admin-settings/admin-settings.component.ts
				
 
			
				- 
					
					
					 
					apps/client/src/app/components/admin-settings/ghostfolio-premium-api-dialog/ghostfolio-premium-api-dialog.html
				
 
			
				- 
					
					
					 
					apps/client/src/app/components/admin-settings/ghostfolio-premium-api-dialog/interfaces/interfaces.ts
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -100,7 +100,8 @@ export class AdminSettingsComponent implements OnDestroy, OnInit { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        autoFocus: false, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        data: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          deviceType: this.deviceType, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          pricingUrl: this.pricingUrl | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          pricingUrl: this.pricingUrl, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          user: this.user | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        height: this.deviceType === 'mobile' ? '98vh' : undefined, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        width: this.deviceType === 'mobile' ? '100vw' : '50rem' | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -31,17 +31,19 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      mat-flat-button | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      >Notify me</a | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    > | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <small class="text-muted" i18n>or</small> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <button | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      color="accent" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      i18n | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      mat-stroked-button | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      (click)="onSetGhostfolioApiKey()" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    > | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      I have an API key | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    @if (data.user?.settings?.isExperimentalFeatures) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <small class="text-muted" i18n>or</small> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <button | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        color="accent" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        i18n | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        mat-stroked-button | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        (click)="onSetGhostfolioApiKey()" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      > | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        I have an API key | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      </button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					</div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
						
					 | 
				
				 | 
				
					@ -1,4 +1,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { User } from '@ghostfolio/common/interfaces'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					export interface GhostfolioPremiumApiDialogParams { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  deviceType: string; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  pricingUrl: string; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  user: User; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
					 | 
				
				 | 
				
					
  |