Skip to content

Commit

Permalink
chore: success toast show twice after deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Dec 25, 2024
1 parent e74cda3 commit dcad5f4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/locales/en-US/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ export default {
'vLLM: For non-GGUF format models, supports x86 Linux only.',
'models.form.backend.voxbox': 'vox-box: For non-GGUF format audio models.',
'models.form.search.gguftips':
'GGUF format is required for Mac and Windows compatibility.',
'Mac and Windows require GGUF format for non-audio models.',
'models.form.button.addlabel': 'Add Label'
};
2 changes: 1 addition & 1 deletion src/locales/zh-CN/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ export default {
'models.form.backend.vllm': 'vLLM: 用于非 GGUF 格式模型,仅支持 x86 Linux',
'models.form.backend.voxbox': 'vox-box: 用于非 GGUF 格式的音频模型',
'models.form.search.gguftips':
'Mac 和 Windows 需要使用 GGUF 格式以确保兼容性',
'非音频模型,Mac 和 Windows 需要使用 GGUF 格式',
'models.form.button.addlabel': '添加标签'
};
3 changes: 0 additions & 3 deletions src/pages/llmodels/components/search-model.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
modelSource={modelSource}
></SearchInput>
<div className="gguf-tips">
<span className="m-r-5">
{intl.formatMessage({ id: 'common.tips.title' })}
</span>
<span>
{intl.formatMessage({ id: 'models.form.search.gguftips' })}
</span>
Expand Down
1 change: 0 additions & 1 deletion src/pages/llmodels/components/table-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ const Models: React.FC<ModelsProps> = ({
replicas: 0
}
});
message.success(intl.formatMessage({ id: 'common.message.success' }));
} catch (error) {
// ingore
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/llmodels/style/search-result.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
display: flex;
align-items: center;
padding: 8px 0;
color: var(--ant-color-text-secondary);
color: var(--ant-color-text-tertiary);

.warning {
color: var(--ant-color-warning);
Expand Down

0 comments on commit dcad5f4

Please sign in to comment.