mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Display "Push to Nostr" when origin URL is empty
This commit is contained in:
1 file changed
+2
-2
@@ -1138,7 +1138,7 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
|
||||
)}
|
||||
</div>
|
||||
|
||||
{gitStatus.remotes.length > 0 && (
|
||||
{originUrl.trim() && (
|
||||
<div className="flex gap-2">
|
||||
<Button
|
||||
onClick={handlePull}
|
||||
@@ -1172,7 +1172,7 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
|
||||
</div>
|
||||
)}
|
||||
|
||||
{gitStatus.remotes.length === 0 && user && (
|
||||
{!originUrl.trim() && user && (
|
||||
<Button
|
||||
onClick={handlePushToNostr}
|
||||
disabled={isPushingToNostr || isPushing || isPulling}
|
||||
|
||||
Reference in new issue
Block a user