Adapt to plugin guidelines (#65)
- remove header in settings - remove logging of changed settings value
This commit is contained in:
		
							parent
							
								
									9be2b5d748
								
							
						
					
					
						commit
						e8f03522bc
					
				
							
								
								
									
										3
									
								
								main.ts
								
								
								
								
							
							
						
						
									
										3
									
								
								main.ts
								
								
								
								
							| 
						 | 
				
			
			@ -120,8 +120,6 @@ class SampleSettingTab extends PluginSettingTab {
 | 
			
		|||
 | 
			
		||||
		containerEl.empty();
 | 
			
		||||
 | 
			
		||||
		containerEl.createEl('h2', {text: 'Settings for my awesome plugin.'});
 | 
			
		||||
 | 
			
		||||
		new Setting(containerEl)
 | 
			
		||||
			.setName('Setting #1')
 | 
			
		||||
			.setDesc('It\'s a secret')
 | 
			
		||||
| 
						 | 
				
			
			@ -129,7 +127,6 @@ class SampleSettingTab extends PluginSettingTab {
 | 
			
		|||
				.setPlaceholder('Enter your secret')
 | 
			
		||||
				.setValue(this.plugin.settings.mySetting)
 | 
			
		||||
				.onChange(async (value) => {
 | 
			
		||||
					console.log('Secret: ' + value);
 | 
			
		||||
					this.plugin.settings.mySetting = value;
 | 
			
		||||
					await this.plugin.saveSettings();
 | 
			
		||||
				}));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue