Skip to content

Commit

Permalink
feat: added reload button
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Kramar authored and moonrailgun committed Nov 14, 2023
1 parent 5b16ff9 commit 72a68d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/shared/i18n/langs/en-US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@
"kceea83fc": "Join Group",
"kcefdbe2d": "Modify avatar success",
"kd0690a45": "Allow management of identity groups",
"kd080f2d7": "Reload",
"kd0d594e4": "Distributed deployment can be used at any scale",
"kd1af615e": "Panel not found",
"kd28c05df": "Create Success",
Expand Down
1 change: 1 addition & 0 deletions client/shared/i18n/langs/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@
"kceea83fc": "加入群组",
"kcefdbe2d": "修改头像成功",
"kd0690a45": "允许管理身份组",
"kd080f2d7": "重新加载",
"kd0d594e4": "分布式部署可供任意规模的使用需求",
"kd1af615e": "面板不存在",
"kd28c05df": "创建成功",
Expand Down
5 changes: 4 additions & 1 deletion client/web/src/components/modals/SettingsView/System.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { FullModalFactory } from '@/components/FullModal/Factory';
import { FullModalField } from '@/components/FullModal/Field';
import { LanguageSelect } from '@/components/LanguageSelect';
import { pluginColorScheme, pluginSettings } from '@/plugin/common';
import { Select, Switch } from 'antd';
import { Select, Switch, Button } from 'antd';
import React from 'react';
import {
t,
Expand Down Expand Up @@ -89,6 +89,9 @@ export const SettingsSystem: React.FC = React.memo(() => {
}
/>
)}
<Button type="primary" onClick={() => window.location.reload()}>
{t('重新加载')}
</Button>
</div>
);
});
Expand Down

0 comments on commit 72a68d3

Please sign in to comment.