Skip to content

Commit

Permalink
Fixed download link for manual update
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Aug 12, 2024
1 parent 95840e2 commit 7c27b2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/components/boot/BootSelfUpdate.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<template>
<boot-check :progress="bootState" :title="$t('ui.server.selfUpdate.title')" :description="bootDescription">
<template #description v-if="latestDownload">
<i18n :tag="false" path="ui.server.selfUpdate.manualUpdate">
<template #latest>{{ latestDownload }}</template>
<template #download><a href="https://to.contao.org/download?lang=${this.$i18n.locale}" target="_blank" rel="noreferrer noopener">https://to.contao.org/download</a></template>
</i18n>
</template>
<button class="widget-button widget-button--warning" v-if="!isSupported && bootState === 'action'" @click="next">{{ $t('ui.server.selfUpdate.continue') }}</button>
<button class="widget-button widget-button--alert" v-else-if="hasUpdate" @click="update">{{ $t('ui.server.selfUpdate.button') }}</button>
</boot-check>
Expand All @@ -17,6 +23,7 @@
data: () => ({
hasUpdate: false,
isSupported: true,
latestDownload: null,
}),
methods: {
Expand Down Expand Up @@ -50,6 +57,7 @@
if (latest === result.current_version) {
this.emitState('success', this.$t('ui.server.selfUpdate.latest', context));
} else {
this.latestDownload = latest;
this.emitState('error', this.$t('ui.server.selfUpdate.manualUpdate', {
latest,
download: `<a href="https://to.contao.org/download?lang=${this.$i18n.locale}" target="_blank" rel="noreferrer noopener">https://to.contao.org/download</a>`
Expand Down
2 changes: 1 addition & 1 deletion src/components/fragments/BootCheck.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<div class="boot-check__label">
<h2 class="boot-check__title">{{ title }}</h2>
<p class="boot-check__description">{{ description }}</p>
<p class="boot-check__description"><slot name="description">{{ description }}</slot></p>
<p class="boot-check__detail" v-if="detail">{{ detail }}</p>
</div>
<div class="boot-check__action">
Expand Down

0 comments on commit 7c27b2c

Please sign in to comment.