Skip to content

Commit

Permalink
disable publish your own pipe if screenpipe not running
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jan 9, 2025
1 parent 7f40835 commit 5787b78
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions screenpipe-app-tauri/components/pipe-store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1579,16 +1579,21 @@ const PipeStore: React.FC = () => {
<div className="flex-1 relative">
<Input
type="url"
placeholder="enter github url or local path"
placeholder={
health?.status === "error"
? "screenpipe not running..."
: "enter github url or local path"
}
value={newRepoUrl}
onChange={(e) => setNewRepoUrl(e.target.value)}
autoCorrect="off"
autoComplete="off"
disabled={health?.status === "error"}
/>
</div>
<Button
onClick={handleAddOwnPipe}
disabled={!newRepoUrl}
disabled={!newRepoUrl || health?.status === "error"}
size="icon"
className="h-10 w-10"
>
Expand All @@ -1599,6 +1604,7 @@ const PipeStore: React.FC = () => {
variant="outline"
size="icon"
className="h-10 w-10"
disabled={health?.status === "error"}
>
<FolderOpen className="h-4 w-4" />
</Button>
Expand Down

0 comments on commit 5787b78

Please sign in to comment.