Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: replace 'login required' text with clickable login button

Louis Beaumontc820f9610a44
diff --git a/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx b/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
index 9cd44937f..33cfa8d98 100644
--- a/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
@@ -576,10 +576,18 @@ export function ObsidianSyncCard() {
</p>
{!isLoggedIn && (
- <p className="text-xs text-muted-foreground mb-2">
- <AlertCircle className="h-3 w-3 inline mr-1" />
- Login required
- </p>
+ <Button
+ variant="outline"
+ size="sm"
+ className="text-xs gap-1.5 h-7 mb-2"
+ onClick={async () => {
+ const { open } = await import("@tauri-apps/plugin-shell");
+ await open("https://screenpi.pe/login");
+ }}
+ >
+ <AlertCircle className="h-3 w-3" />
+ login to use
+ </Button>
)}
<div className="flex flex-wrap gap-2">