Skip to content

Commit

Permalink
fix: update all providers
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyruso committed Dec 2, 2024
1 parent bebb912 commit c88b1e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/components/sidebar/ProxiesCtrl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
>
<button
:class="twMerge('btn btn-sm', isUpgrading ? 'animate-pulse' : '')"
@click="handlerClickUpgradeAllProviders"
@click="handlerClickUpdateAllProviders"
>
{{ $t('upgradeAllProviders') }}
{{ $t('updateAllProviders') }}
</button>
</div>
</template>
Expand Down Expand Up @@ -74,7 +74,7 @@ defineProps<{
}>()
const isUpgrading = ref(false)
const handlerClickUpgradeAllProviders = async () => {
const handlerClickUpdateAllProviders = async () => {
if (isUpgrading.value) return
isUpgrading.value = true
try {
Expand All @@ -84,6 +84,7 @@ const handlerClickUpgradeAllProviders = async () => {
await fetchProxies()
isUpgrading.value = false
} catch {
await fetchProxies()
isUpgrading.value = false
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/sidebar/RulesCtrl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
:class="twMerge('btn btn-sm', isUpgrading ? 'animate-pulse' : '')"
@click="handlerClickUpgradeAllProviders"
>
{{ $t('upgradeAllProviders') }}
{{ $t('updateAllProviders') }}
</button>
</div>
</div>
Expand Down Expand Up @@ -55,6 +55,7 @@ const handlerClickUpgradeAllProviders = async () => {
await fetchRules()
isUpgrading.value = false
} catch {
await fetchRules()
isUpgrading.value = false
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default {
noExpire: 'Null',
updated: 'Updated',
upgradeUI: 'Upgrade Dashboard',
upgradeAllProviders: 'Upgrade All Providers',
updateAllProviders: 'Upgrade All Providers',
reloadConfigs: 'Reload Configs',
mode: 'Mode',
proxySortType: 'Proxy Sort Type',
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default {
noExpire: '不限时',
updated: '更新于',
upgradeUI: '更新面板',
upgradeAllProviders: '更新所有提供商',
updateAllProviders: '更新所有提供商',
reloadConfigs: '重载配置',
mode: '模式',
proxySortType: '代理排序方式',
Expand Down

0 comments on commit c88b1e1

Please sign in to comment.