Skip to content

Commit 1dea24f

Browse files
rozzillamcollina
andauthored
feat(frontend): check platformatic control rather than wattpm (#23)
* feat(frontend): check platformatic control rather than wattpm Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com> * Update web/frontend/src/components/application/AppNameBox.jsx Co-authored-by: Matteo Collina <matteo.collina@gmail.com> --------- Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com> Co-authored-by: Matteo Collina <matteo.collina@gmail.com>
1 parent 0f32b85 commit 1dea24f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/frontend/src/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export const getApiApplication = async () => {
2020
let latest = ''
2121
export const isWattpmVersionOutdated = async (currentVersion) => {
2222
if (!latest) {
23-
const result = await fetch('https://registry.npmjs.org/wattpm')
23+
const result = await fetch('https://registry.npmjs.org/@platformatic/control')
2424
const data = await result.json()
2525
latest = data['dist-tags'].latest
2626
}
27-
console.log('last stable wattpm version', latest)
27+
console.log('last stable @platformatic/control version', latest)
2828
return latest !== currentVersion
2929
}
3030

web/frontend/src/components/application/AppNameBox.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function AppNameBox ({
117117
{outdatedVersion && (
118118
<Tooltip
119119
tooltipClassName={tooltipStyles.tooltipDarkStyle}
120-
content={(<span>There is a new wattpm version.</span>)}
120+
content={(<span>There is a new Platformatic/Watt version.</span>)}
121121
offset={24}
122122
immediateActive={false}
123123
>

0 commit comments

Comments
 (0)