mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
chore: bump version to 0.7.4
This commit is contained in:
1 parent
e6156f3c47
commit
af292758c3
11 files changed
+474
-72
No files matched your search
@@ -0,0 +1,134 @@
|
||||
import { useMemo } from 'react'
|
||||
import { Check } from 'lucide-react'
|
||||
|
||||
const capitalize = (str: string) => str.charAt(0).toUpperCase() + str.slice(1).toLowerCase()
|
||||
import {
|
||||
DropdownMenu,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuItem,
|
||||
DropdownMenuTrigger,
|
||||
} from '@/components/ui/dropdown-menu'
|
||||
import { useAgents } from '@/hooks/useOpenCode'
|
||||
|
||||
interface AgentQuickSelectProps {
|
||||
opcodeUrl: string | null | undefined
|
||||
directory?: string
|
||||
currentAgent: string
|
||||
onAgentChange: (agent: string) => void
|
||||
isBashMode?: boolean
|
||||
disabled?: boolean
|
||||
}
|
||||
|
||||
const getAgentStyles = (agent: string) => {
|
||||
const lowerAgent = agent.toLowerCase()
|
||||
if (lowerAgent === 'plan') {
|
||||
return {
|
||||
color: 'text-yellow-600 dark:text-yellow-500',
|
||||
bg: 'bg-yellow-500/20 border-yellow-400 hover:bg-yellow-500/30 hover:border-yellow-300',
|
||||
shadow: 'shadow-yellow-500/20 hover:shadow-yellow-500/30',
|
||||
}
|
||||
}
|
||||
if (lowerAgent === 'build') {
|
||||
return {
|
||||
color: 'text-green-600 dark:text-green-500',
|
||||
bg: 'bg-green-500/20 border-green-400 hover:bg-green-500/30 hover:border-green-300',
|
||||
shadow: 'shadow-green-500/20 hover:shadow-green-500/30',
|
||||
}
|
||||
}
|
||||
return {
|
||||
color: 'text-blue-600 dark:text-blue-500',
|
||||
bg: 'bg-blue-500/20 border-blue-400 hover:bg-blue-500/30 hover:border-blue-300',
|
||||
shadow: 'shadow-blue-500/20 hover:shadow-blue-500/30',
|
||||
}
|
||||
}
|
||||
|
||||
const bashStyles = {
|
||||
color: 'text-purple-700 dark:text-purple-300',
|
||||
bg: 'bg-purple-500/20 border-purple-400',
|
||||
shadow: 'shadow-purple-500/20 hover:shadow-purple-500/30',
|
||||
}
|
||||
|
||||
export function AgentQuickSelect({
|
||||
opcodeUrl,
|
||||
directory,
|
||||
currentAgent,
|
||||
onAgentChange,
|
||||
isBashMode = false,
|
||||
disabled = false,
|
||||
}: AgentQuickSelectProps) {
|
||||
const { data: agents = [] } = useAgents(opcodeUrl, directory)
|
||||
|
||||
const primaryAgents = useMemo(() => {
|
||||
return agents.filter(
|
||||
(agent) =>
|
||||
(agent.mode === 'primary' || agent.mode === 'all') &&
|
||||
!agent.hidden
|
||||
)
|
||||
}, [agents])
|
||||
|
||||
const handleToggle = () => {
|
||||
if (primaryAgents.length === 0) return
|
||||
|
||||
const currentIndex = primaryAgents.findIndex(
|
||||
(a) => a.name.toLowerCase() === currentAgent.toLowerCase()
|
||||
)
|
||||
const nextIndex = (currentIndex + 1) % primaryAgents.length
|
||||
onAgentChange(primaryAgents[nextIndex].name)
|
||||
}
|
||||
|
||||
const handleSelect = (agentName: string) => {
|
||||
onAgentChange(agentName)
|
||||
}
|
||||
|
||||
const styles = isBashMode ? bashStyles : getAgentStyles(currentAgent)
|
||||
const displayName = isBashMode ? 'Bash' : capitalize(currentAgent)
|
||||
|
||||
const buttonContent = (
|
||||
<button
|
||||
data-toggle-mode
|
||||
onClick={primaryAgents.length <= 2 ? handleToggle : undefined}
|
||||
disabled={disabled}
|
||||
className={`px-2 md:px-3.5 py-1 h-[36px] rounded-lg text-sm font-medium border min-w-[48px] max-w-[80px] md:max-w-[100px] flex items-center justify-center transition-all duration-200 active:scale-95 hover:scale-105 shadow-md ${styles.bg} ${styles.color} ${styles.shadow}`}
|
||||
>
|
||||
<span className="truncate">{displayName}</span>
|
||||
</button>
|
||||
)
|
||||
|
||||
if (primaryAgents.length <= 2) {
|
||||
return buttonContent
|
||||
}
|
||||
|
||||
return (
|
||||
<DropdownMenu>
|
||||
<DropdownMenuTrigger asChild disabled={disabled}>
|
||||
{buttonContent}
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="start" className="w-48">
|
||||
{primaryAgents.map((agent) => {
|
||||
const agentStyles = getAgentStyles(agent.name)
|
||||
const isSelected = agent.name.toLowerCase() === currentAgent.toLowerCase()
|
||||
|
||||
return (
|
||||
<DropdownMenuItem
|
||||
key={agent.name}
|
||||
onClick={() => handleSelect(agent.name)}
|
||||
className="flex items-center justify-between"
|
||||
>
|
||||
<div className="flex flex-col">
|
||||
<span className={`font-medium ${agentStyles.color}`}>
|
||||
{capitalize(agent.name)}
|
||||
</span>
|
||||
{agent.description && (
|
||||
<span className="text-xs text-muted-foreground truncate max-w-[160px]">
|
||||
{agent.description}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
{isSelected && <Check className="h-4 w-4 flex-shrink-0 ml-2" />}
|
||||
</DropdownMenuItem>
|
||||
)
|
||||
})}
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenu>
|
||||
)
|
||||
}
|
||||
@@ -18,6 +18,7 @@ import { SquareFill } from '@/components/ui/square-fill'
|
||||
import { MentionSuggestions, type MentionItem } from './MentionSuggestions'
|
||||
import { SessionStatusIndicator } from '@/components/ui/session-status-indicator'
|
||||
import { ModelQuickSelect } from '@/components/model/ModelQuickSelect'
|
||||
import { AgentQuickSelect } from '@/components/agent/AgentQuickSelect'
|
||||
import { detectMentionTrigger, parsePromptToParts, getFilename, filterAgentsByQuery } from '@/lib/promptParser'
|
||||
|
||||
|
||||
@@ -346,9 +347,8 @@ export const PromptInput = forwardRef<PromptInputHandle, PromptInputProps>(funct
|
||||
setMentionRange(null)
|
||||
}
|
||||
|
||||
const handleModeToggle = () => {
|
||||
const newMode = currentMode === 'plan' ? 'build' : 'plan'
|
||||
setLocalMode(newMode)
|
||||
const handleAgentChange = (agent: string) => {
|
||||
setLocalMode(agent)
|
||||
}
|
||||
|
||||
const addImageAttachment = (file: File) => {
|
||||
@@ -682,9 +682,6 @@ if (isIOS && isSecureContext && navigator.clipboard && navigator.clipboard.read)
|
||||
|
||||
const sessionAgent = useSessionAgent(opcodeUrl, sessionID, directory)
|
||||
const currentMode = localMode ?? sessionAgent.agent
|
||||
const modeColor = currentMode === 'plan' ? 'text-yellow-600 dark:text-yellow-500' : 'text-green-600 dark:text-green-500'
|
||||
const modeBg = currentMode === 'plan' ? 'bg-yellow-500/20 border-yellow-400 hover:bg-yellow-500/30 hover:border-yellow-300' : 'bg-green-500/20 border-green-400 hover:bg-green-500/30 hover:border-green-300'
|
||||
const modeShadow = currentMode === 'plan' ? 'shadow-yellow-500/20 hover:shadow-yellow-500/30' : 'shadow-green-500/20 hover:shadow-green-500/30'
|
||||
|
||||
const { model, modelString } = useModelSelection(opcodeUrl, directory)
|
||||
const currentModel = modelString || ''
|
||||
@@ -777,17 +774,14 @@ return (
|
||||
|
||||
<div className="flex gap-1.5 md:gap-2 items-center justify-between">
|
||||
<div className="flex gap-1.5 md:gap-2 items-center">
|
||||
<button
|
||||
data-toggle-mode
|
||||
onClick={handleModeToggle}
|
||||
className={`px-3 md:px-3.5 py-1 h-[36px] rounded-lg text-sm font-medium border w-14 flex items-center justify-center transition-all duration-200 active:scale-95 hover:scale-105 shadow-md ${
|
||||
isBashMode
|
||||
? 'bg-purple-500/20 border-purple-400 text-purple-700 dark:text-purple-300 shadow-purple-500/20 hover:shadow-purple-500/30'
|
||||
: `${modeBg} ${modeColor} ${modeShadow}`
|
||||
}`}
|
||||
>
|
||||
{isBashMode ? 'BASH' : currentMode.toUpperCase()}
|
||||
</button>
|
||||
<AgentQuickSelect
|
||||
opcodeUrl={opcodeUrl}
|
||||
directory={directory}
|
||||
currentAgent={currentMode}
|
||||
onAgentChange={handleAgentChange}
|
||||
isBashMode={isBashMode}
|
||||
disabled={disabled}
|
||||
/>
|
||||
{hasActiveStream ? (
|
||||
<div className="px-2.5 py-1.5 md:px-3 md:py-2 rounded-lg text-xs md:text-sm font-medium text-muted-foreground max-w-[120px] md:max-w-[180px]">
|
||||
<SessionStatusIndicator sessionID={sessionID} />
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useForm } from 'react-hook-form'
|
||||
import { zodResolver } from '@hookform/resolvers/zod'
|
||||
import { z } from 'zod'
|
||||
import { useMemo } from 'react'
|
||||
import { useMemo, useEffect } from 'react'
|
||||
import { useQuery } from '@tanstack/react-query'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog'
|
||||
@@ -66,8 +66,6 @@ interface AgentDialogProps {
|
||||
}
|
||||
|
||||
export function AgentDialog({ open, onOpenChange, onSubmit, editingAgent }: AgentDialogProps) {
|
||||
const parsedModel = parseModelString(editingAgent?.agent.model)
|
||||
|
||||
const { data: providers = [] } = useQuery({
|
||||
queryKey: ['providers-with-models'],
|
||||
queryFn: () => getProvidersWithModels(),
|
||||
@@ -89,28 +87,39 @@ export function AgentDialog({ open, onOpenChange, onSubmit, editingAgent }: Agen
|
||||
}))
|
||||
}, [providers])
|
||||
|
||||
const getDefaultValues = (agent?: { name: string; agent: Agent } | null): AgentFormValues => {
|
||||
const parsed = parseModelString(agent?.agent.model)
|
||||
return {
|
||||
name: agent?.name || '',
|
||||
description: agent?.agent.description || '',
|
||||
prompt: agent?.agent.prompt || '',
|
||||
mode: agent?.agent.mode || 'subagent',
|
||||
temperature: agent?.agent.temperature ?? 0.7,
|
||||
topP: agent?.agent.topP ?? agent?.agent.top_p ?? 1,
|
||||
modelId: parsed.modelId,
|
||||
providerId: parsed.providerId,
|
||||
write: agent?.agent.tools?.write ?? true,
|
||||
edit: agent?.agent.tools?.edit ?? true,
|
||||
bash: agent?.agent.tools?.bash ?? true,
|
||||
webfetch: agent?.agent.tools?.webfetch ?? true,
|
||||
editPermission: agent?.agent.permission?.edit ?? 'allow',
|
||||
bashPermission: typeof agent?.agent.permission?.bash === 'string' ? agent.agent.permission.bash : 'allow',
|
||||
webfetchPermission: agent?.agent.permission?.webfetch ?? 'allow',
|
||||
disable: agent?.agent.disable ?? false
|
||||
}
|
||||
}
|
||||
|
||||
const form = useForm<AgentFormValues>({
|
||||
resolver: zodResolver(agentFormSchema),
|
||||
defaultValues: {
|
||||
name: editingAgent?.name || '',
|
||||
description: editingAgent?.agent.description || '',
|
||||
prompt: editingAgent?.agent.prompt || '',
|
||||
mode: editingAgent?.agent.mode || 'subagent',
|
||||
temperature: editingAgent?.agent.temperature ?? 0.7,
|
||||
topP: editingAgent?.agent.topP ?? editingAgent?.agent.top_p ?? 1,
|
||||
modelId: parsedModel.modelId,
|
||||
providerId: parsedModel.providerId,
|
||||
write: editingAgent?.agent.tools?.write ?? true,
|
||||
edit: editingAgent?.agent.tools?.edit ?? true,
|
||||
bash: editingAgent?.agent.tools?.bash ?? true,
|
||||
webfetch: editingAgent?.agent.tools?.webfetch ?? true,
|
||||
editPermission: editingAgent?.agent.permission?.edit ?? 'allow',
|
||||
bashPermission: typeof editingAgent?.agent.permission?.bash === 'string' ? editingAgent.agent.permission.bash : 'allow',
|
||||
webfetchPermission: editingAgent?.agent.permission?.webfetch ?? 'allow',
|
||||
disable: editingAgent?.agent.disable ?? false
|
||||
}
|
||||
defaultValues: getDefaultValues(editingAgent)
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
if (open) {
|
||||
form.reset(getDefaultValues(editingAgent))
|
||||
}
|
||||
}, [open, editingAgent, form])
|
||||
|
||||
const selectedProviderId = form.watch('providerId')
|
||||
|
||||
const modelOptions: ComboboxOption[] = useMemo(() => {
|
||||
|
||||
@@ -27,6 +27,7 @@ export function AgentsMdEditor() {
|
||||
mutationFn: (newContent: string) => settingsApi.updateAgentsMd(newContent),
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ['agents-md'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['opencode', 'agents'] })
|
||||
setHasChanges(false)
|
||||
showToast.success('AGENTS.md saved and server restarted')
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useState, useEffect, useRef } from 'react'
|
||||
import { Loader2, Plus, Trash2, Edit, Star, StarOff, Download, RotateCcw, FileText, ArrowUpCircle } from 'lucide-react'
|
||||
import { Loader2, Plus, Trash2, Edit, Star, StarOff, Download, RotateCcw, FileText, ArrowUpCircle, History } from 'lucide-react'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
|
||||
import { Label } from '@/components/ui/label'
|
||||
@@ -12,6 +12,7 @@ import { CommandsEditor } from './CommandsEditor'
|
||||
import { AgentsEditor } from './AgentsEditor'
|
||||
import { AgentsMdEditor } from './AgentsMdEditor'
|
||||
import { McpManager } from './McpManager'
|
||||
import { VersionSelectDialog } from './VersionSelectDialog'
|
||||
import { settingsApi } from '@/api/settings'
|
||||
import { useMutation, useQueryClient } from '@tanstack/react-query'
|
||||
import { useServerHealth } from '@/hooks/useServerHealth'
|
||||
@@ -62,6 +63,7 @@ export function OpenCodeConfigManager() {
|
||||
})
|
||||
const [isCreateDialogOpen, setIsCreateDialogOpen] = useState(false)
|
||||
const [isEditDialogOpen, setIsEditDialogOpen] = useState(false)
|
||||
const [isVersionDialogOpen, setIsVersionDialogOpen] = useState(false)
|
||||
const [deleteConfirmConfig, setDeleteConfirmConfig] = useState<OpenCodeConfig | null>(null)
|
||||
|
||||
const agentsMdRef = useRef<HTMLButtonElement>(null)
|
||||
@@ -127,21 +129,6 @@ export function OpenCodeConfigManager() {
|
||||
return getApiErrorMessage(error, 'Failed to restart OpenCode server')
|
||||
}
|
||||
|
||||
const rollbackMutation = useMutation({
|
||||
mutationFn: async () => {
|
||||
return await settingsApi.rollbackOpenCodeConfig()
|
||||
},
|
||||
onSuccess: (data) => {
|
||||
queryClient.invalidateQueries({ queryKey: ['opencode', 'agents'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['settings'] })
|
||||
showToast.success(data.message, { id: 'rollback-config' })
|
||||
fetchConfigs()
|
||||
},
|
||||
onError: () => {
|
||||
showToast.error('Failed to rollback to previous config', { id: 'rollback-config' })
|
||||
},
|
||||
})
|
||||
|
||||
const fetchConfigs = async () => {
|
||||
try {
|
||||
setIsLoading(true)
|
||||
@@ -385,18 +372,10 @@ export function OpenCodeConfigManager() {
|
||||
<Button
|
||||
variant="outline"
|
||||
size="sm"
|
||||
onClick={() => {
|
||||
showToast.loading('Rolling back to previous config...', { id: 'rollback-config' })
|
||||
rollbackMutation.mutate()
|
||||
}}
|
||||
disabled={rollbackMutation.isPending}
|
||||
onClick={() => setIsVersionDialogOpen(true)}
|
||||
>
|
||||
{rollbackMutation.isPending ? (
|
||||
<Loader2 className="h-3 w-3 sm:h-4 sm:w-4 mr-1 animate-spin" />
|
||||
) : (
|
||||
<RotateCcw className="h-3 w-3 sm:h-4 sm:w-4 mr-1" />
|
||||
)}
|
||||
<span className="text-xs sm:text-sm">Rollback</span>
|
||||
<History className="h-3 w-3 sm:h-4 sm:w-4 mr-1" />
|
||||
<span className="text-xs sm:text-sm">Versions</span>
|
||||
</Button>
|
||||
<Button
|
||||
size="sm"
|
||||
@@ -417,6 +396,11 @@ export function OpenCodeConfigManager() {
|
||||
isUpdating={isUpdating}
|
||||
/>
|
||||
|
||||
<VersionSelectDialog
|
||||
open={isVersionDialogOpen}
|
||||
onOpenChange={setIsVersionDialogOpen}
|
||||
/>
|
||||
|
||||
{configs.length === 0 ? (
|
||||
<Card>
|
||||
<CardContent className="p-8 text-center">
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
import { useState } from 'react'
|
||||
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query'
|
||||
import { Loader2, Check, Download } from 'lucide-react'
|
||||
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from '@/components/ui/dialog'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { settingsApi } from '@/api/settings'
|
||||
import { showToast } from '@/lib/toast'
|
||||
|
||||
interface VersionSelectDialogProps {
|
||||
open: boolean
|
||||
onOpenChange: (open: boolean) => void
|
||||
}
|
||||
|
||||
export function VersionSelectDialog({ open, onOpenChange }: VersionSelectDialogProps) {
|
||||
const queryClient = useQueryClient()
|
||||
const [selectedVersion, setSelectedVersion] = useState<string | null>(null)
|
||||
|
||||
const { data, isLoading, error } = useQuery({
|
||||
queryKey: ['opencode-versions'],
|
||||
queryFn: () => settingsApi.getOpenCodeVersions(),
|
||||
enabled: open,
|
||||
staleTime: 60000,
|
||||
})
|
||||
|
||||
const installMutation = useMutation({
|
||||
mutationFn: (version: string) => settingsApi.installOpenCodeVersion(version),
|
||||
onSuccess: (result) => {
|
||||
queryClient.invalidateQueries({ queryKey: ['opencode-versions'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['server-health'] })
|
||||
showToast.success(result.message)
|
||||
onOpenChange(false)
|
||||
},
|
||||
onError: () => {
|
||||
showToast.error('Failed to install version')
|
||||
},
|
||||
})
|
||||
|
||||
const handleInstall = () => {
|
||||
if (!selectedVersion) return
|
||||
showToast.loading(`Installing OpenCode v${selectedVersion}...`, { id: 'install-version' })
|
||||
installMutation.mutate(selectedVersion, {
|
||||
onSettled: () => {
|
||||
showToast.dismiss('install-version')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const formatDate = (dateString: string) => {
|
||||
return new Date(dateString).toLocaleDateString(undefined, {
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
day: 'numeric'
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={onOpenChange}>
|
||||
<DialogContent className="max-w-md">
|
||||
<DialogHeader>
|
||||
<DialogTitle>Select OpenCode Version</DialogTitle>
|
||||
<DialogDescription>
|
||||
Choose a version to install. Current version: {data?.currentVersion ? `v${data.currentVersion}` : 'Unknown'}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
{isLoading && (
|
||||
<div className="flex items-center justify-center py-8">
|
||||
<Loader2 className="h-6 w-6 animate-spin text-muted-foreground" />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{error && (
|
||||
<div className="text-center py-8 text-red-500">
|
||||
Failed to fetch versions
|
||||
</div>
|
||||
)}
|
||||
|
||||
{data && (
|
||||
<>
|
||||
<div className="h-[300px] overflow-y-auto pr-2">
|
||||
<div className="space-y-2">
|
||||
{data.versions.map((release) => {
|
||||
const isCurrent = release.version === data.currentVersion
|
||||
const isSelected = release.version === selectedVersion
|
||||
|
||||
return (
|
||||
<button
|
||||
key={release.version}
|
||||
onClick={() => setSelectedVersion(isCurrent ? null : release.version)}
|
||||
disabled={isCurrent || installMutation.isPending}
|
||||
className={`w-full text-left p-3 rounded-lg border transition-colors ${
|
||||
isSelected
|
||||
? 'border-primary bg-primary/10'
|
||||
: isCurrent
|
||||
? 'border-green-500/50 bg-green-500/10 cursor-default'
|
||||
: 'border-border hover:border-primary/50 hover:bg-muted/50'
|
||||
}`}
|
||||
>
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<div className="font-medium flex items-center gap-2">
|
||||
v{release.version}
|
||||
{isCurrent && (
|
||||
<span className="text-xs px-1.5 py-0.5 rounded bg-green-500/20 text-green-600 dark:text-green-400">
|
||||
Current
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<div className="text-xs text-muted-foreground mt-0.5">
|
||||
{formatDate(release.publishedAt)}
|
||||
</div>
|
||||
</div>
|
||||
{isSelected && <Check className="h-4 w-4 text-primary" />}
|
||||
</div>
|
||||
</button>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex justify-end gap-2 pt-4 border-t">
|
||||
<Button
|
||||
variant="outline"
|
||||
onClick={() => onOpenChange(false)}
|
||||
disabled={installMutation.isPending}
|
||||
>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button
|
||||
onClick={handleInstall}
|
||||
disabled={!selectedVersion || installMutation.isPending}
|
||||
className="min-w-[120px]"
|
||||
>
|
||||
{installMutation.isPending ? (
|
||||
<Loader2 className="h-4 w-4 mr-2 animate-spin" />
|
||||
) : (
|
||||
<Download className="h-4 w-4 mr-2" />
|
||||
)}
|
||||
{selectedVersion ? `Install` : 'Select version'}
|
||||
</Button>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user