mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Unmuted deploy / gitsync button when respective popover is open
This commit is contained in:
2 files changed
+5
-5
No files matched your search
@@ -25,7 +25,7 @@ export function DeployButton({ projectId, projectName, className, disabled }: De
|
||||
aria-label="Deploy project"
|
||||
disabled={disabled}
|
||||
>
|
||||
<Rocket className="size-5 text-muted-foreground" />
|
||||
<Rocket className={cn("size-5", open ? "text-foreground" : "text-muted-foreground")} />
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent
|
||||
@@ -33,10 +33,10 @@ export function DeployButton({ projectId, projectName, className, disabled }: De
|
||||
className="w-96"
|
||||
onOpenAutoFocus={(e) => e.preventDefault()}
|
||||
>
|
||||
<DeploySteps
|
||||
projectId={projectId}
|
||||
<DeploySteps
|
||||
projectId={projectId}
|
||||
projectName={projectName}
|
||||
onClose={() => setOpen(false)}
|
||||
onClose={() => setOpen(false)}
|
||||
/>
|
||||
</PopoverContent>
|
||||
</Popover>
|
||||
|
||||
@@ -33,7 +33,7 @@ export function GitSyncButton({ projectId, className }: GitSyncButtonProps) {
|
||||
className={cn("h-8 w-8 p-0 relative", className)}
|
||||
aria-label="Sync with Git"
|
||||
>
|
||||
<CloudUpload className="size-5 text-muted-foreground" />
|
||||
<CloudUpload className={cn("size-5", open ? "text-foreground" : "text-muted-foreground")} />
|
||||
{showIndicator && (
|
||||
<span className="absolute top-1 right-1 h-2 w-2 rounded-full bg-primary" />
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user