Repository navigation
Commit 2fd628b
committed
fix(marketplace): detail CTA reflects installed state on tenant runtimes
The package-detail primary CTA stayed 'Install to cloud…' even for an
already-installed package in an env console. The installed-state probe was
gated on getRuntimeConfig().defaultEnvironmentId, which is empty on a
per-subdomain tenant runtime — so the probe never ran. But
getCloudInstallationInfo's same-origin /cloud-connection/installation path
resolves the env by hostname and needs no explicit id (pairs with cloud #88).
Drop the guard so the probe always runs; the CTA flips to 'Installed'.
Also add the missing marketplace.action.installed i18n key (en 'Installed',
zh '已安装') — code previously relied on a defaultValue fallback, so zh showed
English.1 parent 2f31406 commit 2fd628b
3 files changed
Lines changed: 12 additions & 6 deletions
File tree
- packages
- app-shell/src/console/marketplace
- i18n/src/locales
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
119 | 124 | | |
120 | 125 | | |
121 | | - | |
122 | | - | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1705 | 1705 | | |
1706 | 1706 | | |
1707 | 1707 | | |
| 1708 | + | |
1708 | 1709 | | |
1709 | 1710 | | |
1710 | 1711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1699 | 1699 | | |
1700 | 1700 | | |
1701 | 1701 | | |
| 1702 | + | |
1702 | 1703 | | |
1703 | 1704 | | |
1704 | 1705 | | |
| |||
0 commit comments