fix: show pull request unavailable state

Replace the empty PR tab with a clear unavailable message
Explain when pull request actions are available
This commit is contained in:
Bohdan Triapitsyn
2026-05-06 00:55:56 +03:00
parent 89f0e0a0e6
commit 6b25fd7d20
7 changed files with 16 additions and 1 deletions
@@ -675,6 +675,7 @@ export const dict: Record<I18nKey, string> = {
'gitView.pr.toast.titleRequired': '标题不能为空',
'gitView.pr.toast.updatePrFailed': '更新拉取请求失败',
'gitView.pullRequest.createHint': '从当前分支创建并管理拉取请求。',
'gitView.pullRequest.availableOnFeatureBranches': '当前分支可以打开 PR 时可用。',
'gitView.pullRequest.title': '拉取请求',
'gitView.tabs.commit': '提交',
'gitView.tabs.pr': 'PR',