mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
How to upgrade message on cloud (#3293)
* How to upgrade message on cloud * Inlined message
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
<script lang="ts">
|
||||
import { SettingsService } from '$lib/gen'
|
||||
import { isCloudHosted } from '$lib/cloud'
|
||||
import Tooltip from './Tooltip.svelte'
|
||||
|
||||
let uptodate: string | undefined = undefined
|
||||
|
||||
loadVersion()
|
||||
|
||||
async function loadVersion() {
|
||||
try {
|
||||
const res = await SettingsService.backendUptodate()
|
||||
@@ -16,14 +15,21 @@
|
||||
console.warn('Could not fetch latest version', e)
|
||||
}
|
||||
}
|
||||
|
||||
loadVersion()
|
||||
</script>
|
||||
|
||||
{#if uptodate}
|
||||
<span class="text-blue-400"
|
||||
>{uptodate} <Tooltip>
|
||||
How to update?<br />
|
||||
- docker: `docker compose up -d`<br />-
|
||||
<a href="https://github.com/windmill-labs/windmill-helm-charts#install">helm</a>
|
||||
<span class="text-blue-400">
|
||||
{uptodate}
|
||||
<Tooltip>
|
||||
{#if isCloudHosted()}
|
||||
The cloud version is updated daily.
|
||||
{:else}
|
||||
How to update?<br />
|
||||
- docker: `docker compose up -d`<br />
|
||||
- <a href="https://github.com/windmill-labs/windmill-helm-charts#install">helm</a>
|
||||
{/if}
|
||||
</Tooltip>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user