mirror of
https://github.com/binxly/Atomizer.git
synced 2026-07-22 05:31:35 +00:00
update api key input box to be password type
This commit is contained in:
parent
a66fd8354e
commit
88b30431a3
1 changed files with 1 additions and 0 deletions
1
main.ts
1
main.ts
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue