mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 00:00:21 +00:00 
			
		
		
		
	Fixed data source editing; the security policy was not loaded
This commit is contained in:
		
							parent
							
								
									e85a75aa96
								
							
						
					
					
						commit
						01e8b09101
					
				@ -98,6 +98,7 @@ public partial class DataSourceERI_V1Dialog : ComponentBase, ISecretId
 | 
				
			|||||||
            this.dataPort = this.DataSource.Port;
 | 
					            this.dataPort = this.DataSource.Port;
 | 
				
			||||||
            this.dataAuthMethod = this.DataSource.AuthMethod;
 | 
					            this.dataAuthMethod = this.DataSource.AuthMethod;
 | 
				
			||||||
            this.dataUsername = this.DataSource.Username;
 | 
					            this.dataUsername = this.DataSource.Username;
 | 
				
			||||||
 | 
					            this.dataSecurityPolicy = this.DataSource.SecurityPolicy;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (this.dataAuthMethod is AuthMethod.TOKEN or AuthMethod.USERNAME_PASSWORD)
 | 
					            if (this.dataAuthMethod is AuthMethod.TOKEN or AuthMethod.USERNAME_PASSWORD)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
 | 
				
			|||||||
@ -76,6 +76,7 @@ public partial class DataSourceLocalDirectoryDialog : ComponentBase
 | 
				
			|||||||
            this.dataName = this.DataSource.Name;
 | 
					            this.dataName = this.DataSource.Name;
 | 
				
			||||||
            this.dataEmbeddingId = this.DataSource.EmbeddingId;
 | 
					            this.dataEmbeddingId = this.DataSource.EmbeddingId;
 | 
				
			||||||
            this.dataPath = this.DataSource.Path;
 | 
					            this.dataPath = this.DataSource.Path;
 | 
				
			||||||
 | 
					            this.dataSecurityPolicy = this.DataSource.SecurityPolicy;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        await base.OnInitializedAsync();
 | 
					        await base.OnInitializedAsync();
 | 
				
			||||||
 | 
				
			|||||||
@ -76,6 +76,7 @@ public partial class DataSourceLocalFileDialog : ComponentBase
 | 
				
			|||||||
            this.dataName = this.DataSource.Name;
 | 
					            this.dataName = this.DataSource.Name;
 | 
				
			||||||
            this.dataEmbeddingId = this.DataSource.EmbeddingId;
 | 
					            this.dataEmbeddingId = this.DataSource.EmbeddingId;
 | 
				
			||||||
            this.dataFilePath = this.DataSource.FilePath;
 | 
					            this.dataFilePath = this.DataSource.FilePath;
 | 
				
			||||||
 | 
					            this.dataSecurityPolicy = this.DataSource.SecurityPolicy;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        await base.OnInitializedAsync();
 | 
					        await base.OnInitializedAsync();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user