Skip to content

Commit

Permalink
refactor(frontend):
Browse files Browse the repository at this point in the history
  • Loading branch information
mcthesw committed Jul 24, 2024
1 parent 1b12d0c commit e8d9bdf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"default_expend_favorites_tree": "Whether to expand favorites by default",
"homepage": "Homepage",
"open_log_folder": "Open log",
"log_to_file": "Generate file log"
"log_to_file": "Generate file log",
"setting_tips": "An asterisk indicates that it will take effect after restarting, and the remaining settings will take effect after saving."
},
"home": {
"hello_world": "Hello world",
Expand Down
3 changes: 2 additions & 1 deletion locales/zh_SIMPLIFIED.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"default_expend_favorites_tree": "是否默认展开收藏夹",
"homepage": "启动页面",
"open_log_folder": "打开日志",
"log_to_file": "生成文件日志"
"log_to_file": "生成文件日志",
"setting_tips": "带有星号表示重启后生效,其余设置保存后生效"
},
"home": {
"hello_world": "你好 世界",
Expand Down
5 changes: 3 additions & 2 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ const router_list = computed(() => {
<el-container class="setting" direction="vertical">
<el-card>
<h1>{{ $t("settings.customizable_settings") }}</h1>
<p>{{ $t("settings.setting_tips") }}</p>
<div class="button-bar">
<el-button @click="submit_settings()">{{ $t("settings.submit_settings") }}</el-button>
<el-button @click="abort_change()">{{ $t("settings.abort_change") }}</el-button>
Expand Down Expand Up @@ -191,7 +192,7 @@ const router_list = computed(() => {
</div>
<div class="setting-box">
<ElSwitch v-model="config.settings.exit_to_tray" :loading="loading" />
<span>{{ $t("settings.exit_to_tray") }}</span>
<span>{{ $t("settings.exit_to_tray") }}*</span>
</div>
<div class="setting-box">
<ElSwitch v-model="config.settings.extra_backup_when_apply" :loading="loading" />
Expand All @@ -215,7 +216,7 @@ const router_list = computed(() => {
</div>
<div class="setting-box">
<ElSwitch v-model="config.settings.log_to_file" :loading="loading" />
<span>{{ $t("settings.log_to_file") }}</span>
<span>{{ $t("settings.log_to_file") }}*</span>
</div>
<div class="setting-box drag-game-box">
<ElCollapse>
Expand Down

0 comments on commit e8d9bdf

Please sign in to comment.