update api key input box to be password type

This commit is contained in:
Zac 2024-12-04 20:23:10 -05:00
parent a66fd8354e
commit 88b30431a3

View file

@ -258,6 +258,7 @@ class AtomicSettingTab extends PluginSettingTab {
.addText(text => text
.setPlaceholder('sk-...')
.setValue(this.plugin.settings.apiKey)
.then(text => text.inputEl.type = 'password')
.onChange(async (value) => {
this.plugin.settings.apiKey = value;
await this.plugin.saveSettings();