mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
setCTA on Khoj Obsidian plugin button. Minor cleanup of space, tabs
This commit is contained in:
@@ -67,6 +67,7 @@ export class KhojSettingTab extends PluginSettingTab {
|
|||||||
.setDesc('Manually force Khoj to re-index your Obsidian Vault')
|
.setDesc('Manually force Khoj to re-index your Obsidian Vault')
|
||||||
.addButton(button => button
|
.addButton(button => button
|
||||||
.setButtonText('Update')
|
.setButtonText('Update')
|
||||||
|
.setCta()
|
||||||
.onClick(async () => {
|
.onClick(async () => {
|
||||||
await request(`${this.plugin.settings.khojUrl}/api/update?t=markdown&force=true`);
|
await request(`${this.plugin.settings.khojUrl}/api/update?t=markdown&force=true`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export async function configureKhojBackend(setting: KhojSetting) {
|
|||||||
new Notice(`✅ Successfully Setup Khoj`);
|
new Notice(`✅ Successfully Setup Khoj`);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.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}`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"0.2.1": "0.15.0",
|
"0.2.1": "0.15.0",
|
||||||
"0.2.2": "0.15.0"
|
"0.2.2": "0.15.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user