增加在配置页面显示当前所用的后端 (#731)

This commit is contained in:
ctaoist 2023-01-18 14:38:12 +08:00 committed by GitHub
parent d7e975484f
commit 63f2af9d8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -266,10 +266,13 @@ function ConfigImpl({
</div> </div>
<div> <div>
<div className={s0.label}>{t('current_backend')}
<p>{apiConfig.baseURL}</p>
</div>
<div className={s0.label}>Action</div> <div className={s0.label}>Action</div>
<Button <Button
start={<LogOut size={16} />} start={<LogOut size={16} />}
label="Switch backend" label={t("switch_backend")}
onClick={openAPIConfigModal} onClick={openAPIConfigModal}
/> />
</div> </div>

View file

@ -25,7 +25,9 @@ export const data = {
order_name_asc: 'By name alphabetically (A-Z)', order_name_asc: 'By name alphabetically (A-Z)',
order_name_desc: 'By name alphabetically (Z-A)', order_name_desc: 'By name alphabetically (Z-A)',
Connections: 'Connections', Connections: 'Connections',
current_backend: 'Current Backend',
Active: 'Active', Active: 'Active',
switch_backend: 'Switch backend"',
Closed: 'Closed', Closed: 'Closed',
switch_theme: 'Switch theme', switch_theme: 'Switch theme',
theme: 'theme', theme: 'theme',

View file

@ -25,7 +25,9 @@ export const data = {
order_name_asc: '按名称字母排序 (A-Z)', order_name_asc: '按名称字母排序 (A-Z)',
order_name_desc: '按名称字母排序 (Z-A)', order_name_desc: '按名称字母排序 (Z-A)',
Connections: '连接', Connections: '连接',
current_backend: '当前后端',
Active: '活动', Active: '活动',
switch_backend: '切换后端',
Closed: '已断开', Closed: '已断开',
switch_theme: '切换主题', switch_theme: '切换主题',
theme: '主题', theme: '主题',