We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c6681 commit 7672274Copy full SHA for 7672274
jsEngine/settings/Settings.ts
@@ -22,15 +22,17 @@ export class JsEnginePluginSettingTab extends PluginSettingTab {
22
}
23
24
display(): void {
25
- this.containerEl.empty();
+ const { containerEl } = this;
26
+ const { settings } = this.plugin;
27
+ containerEl.empty();
28
- if (!this.plugin.settings) {
29
+ if (!settings) {
30
return;
31
32
33
// this.containerEl.createEl('p', { text: 'Currently Empty, but there will be stuff here later.' });
34
- new Setting(this.containerEl).setName('Startup scripts').addButton(button => {
35
+ new Setting(containerEl).setName('Startup scripts').addButton(button => {
36
button.setButtonText('Manage').onClick(() => {
37
new StartupScriptsModal(this.plugin).open();
38
});
0 commit comments