setCTA on Khoj Obsidian plugin button. Minor cleanup of space, tabs

This commit is contained in:
Debanjum Singh Solanky 2023-01-10 23:36:02 -03:00
parent 531d423715
commit 853192932a
3 changed files with 4 additions and 3 deletions

View file

@ -67,6 +67,7 @@ export class KhojSettingTab extends PluginSettingTab {
.setDesc('Manually force Khoj to re-index your Obsidian Vault')
.addButton(button => button
.setButtonText('Update')
.setCta()
.onClick(async () => {
await request(`${this.plugin.settings.khojUrl}/api/update?t=markdown&force=true`);
}

View file

@ -82,7 +82,7 @@ export async function configureKhojBackend(setting: KhojSetting) {
new Notice(`✅ Successfully Setup Khoj`);
})
.catch(error => {
new Notice(`Failed to configure Khoj backend. Contact developer on Github. \n\nError: ${error}`);
new Notice(`Failed to configure Khoj backend. Contact developer on Github.\n\nError: ${error}`);
})
}

View file

@ -1,4 +1,4 @@
{
"0.2.1": "0.15.0",
"0.2.2": "0.15.0"
"0.2.1": "0.15.0",
"0.2.2": "0.15.0"
}