From 07c6fbe7475c7e7cfe37697c5992cf075e8b16f8 Mon Sep 17 00:00:00 2001 From: fyears Date: Wed, 3 Nov 2021 01:05:07 +0800 Subject: [PATCH] change password position --- src/main.ts | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/main.ts b/src/main.ts index 82167ed..1e3558f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -221,18 +221,6 @@ class SaveRemoteSettingTab extends PluginSettingTab { await this.plugin.saveSettings(); }) ); - new Setting(containerEl) - .setName("password") - .setDesc("password") - .addText((text) => - text - .setPlaceholder("") - .setValue(`${this.plugin.settings.password}`) - .onChange(async (value) => { - this.plugin.settings.password = value; - await this.plugin.saveSettings(); - }) - ); new Setting(containerEl) .setName("s3BucketName") @@ -246,5 +234,18 @@ class SaveRemoteSettingTab extends PluginSettingTab { await this.plugin.saveSettings(); }) ); + + new Setting(containerEl) + .setName("password") + .setDesc("password") + .addText((text) => + text + .setPlaceholder("") + .setValue(`${this.plugin.settings.password}`) + .onChange(async (value) => { + this.plugin.settings.password = value; + await this.plugin.saveSettings(); + }) + ); } }