Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disabled start model from mymodel list when server is running #4277

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions web/screens/Settings/MyModels/MyModelList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ const MyModelList = ({ model }: Props) => {
<div
className={twMerge(
'flex items-center space-x-2 px-4 py-2 hover:bg-[hsla(var(--dropdown-menu-hover-bg))]',
serverEnabled &&
activeModel &&
activeModel.id !== model.id &&
'pointer-events-none cursor-not-allowed opacity-40'
serverEnabled && 'cursor-not-allowed opacity-40'
)}
onClick={() => {
onModelActionClick(model.id)
Expand Down Expand Up @@ -172,8 +169,7 @@ const MyModelList = ({ model }: Props) => {
<div
className={twMerge(
'flex cursor-pointer items-center space-x-2 px-4 py-2 hover:bg-[hsla(var(--dropdown-menu-hover-bg))]',
serverEnabled &&
'pointer-events-none cursor-not-allowed opacity-40'
serverEnabled && ' cursor-not-allowed opacity-40'
)}
onClick={() => {
setTimeout(async () => {
Expand Down
Loading