Skip to content

Commit

Permalink
small fix on ui
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Feb 24, 2025
1 parent 433d367 commit 4e841b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions screenpipe-app-tauri/components/pipe-store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ export const PipeStore: React.FC = () => {

onComplete?.();
t.dismiss();

setSelectedPipe(null);
} catch (error) {
// Reset the pipe's status on error
setPipes((prevPipes) =>
Expand Down
7 changes: 6 additions & 1 deletion screenpipe-app-tauri/components/pipe-store/pipe-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,15 @@ export const PipeDetails: React.FC<PipeDetailsProps> = ({
}
}}
className="font-medium"
disabled={isLoadingPurchase}
disabled={isLoadingPurchase || isLoadingInstall}
>
{isLoadingPurchase ? (
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
) : isLoadingInstall ? (
<>
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
installing...
</>
) : pipe.is_paid && !pipe.has_purchased ? (
`$${pipe.price}`
) : (
Expand Down
2 changes: 1 addition & 1 deletion screenpipe-app-tauri/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e841b1

Please sign in to comment.