fixed version notifier

This commit is contained in:
Hayden 2021-01-17 21:22:39 -09:00
commit d0f9917c6f
3 changed files with 27 additions and 11 deletions

View file

@ -95,7 +95,8 @@
"new-version-available": "En ny version af Mealie er tilgængelig. <a {aContents}> Besøg repoen </a>",
"set-new-time": "Indstil ny tid",
"swatches": "Prøver",
"version-latest": "Version: {current} | Seneste: {latest}",
"current": "Version:",
"latest": "Seneste:",
"theme": {
"accent": "Accent",
"dark-mode": "Mørk tilstand",
@ -130,4 +131,4 @@
"import-themes": "Importer temaer"
}
}
}
}

View file

@ -73,7 +73,8 @@
"swatches": "Swatches",
"add-a-new-theme": "Add a New Theme",
"set-new-time": "Set New Time",
"version-latest": "Version: { current } | Latest: { latest }",
"current": "Version:",
"latest": "Latest",
"explore-the-docs": "Explore the Docs",
"contribute": "Contribute",
"backup-and-exports": "Backup and Exports",
@ -130,4 +131,4 @@
"failed-imports": "Failed Imports",
"upload-an-archive": "Upload an Archive"
}
}
}

View file

@ -1,23 +1,37 @@
<template>
<v-container>
<v-alert v-if="newVersion" color="green" type="success" outlined v-html="$t('settings.new-version-available', { aContents: 'target=\'_blank\' href=\'https://github.com/hay-kot/mealie\' class=\'green--text\''})">
<v-alert
v-if="newVersion"
color="green"
type="success"
outlined
v-html="
$t('settings.new-version-available', {
aContents:
'target=\'_blank\' href=\'https://github.com/hay-kot/mealie\' class=\'green--text\'',
})
"
>
</v-alert>
<Theme />
<Backup class="mt-2" />
<Webhooks class="mt-2" />
<Migration class="mt-2" />
<p class="text-center my-2">
{{$t('settings.version-latest', {current: version, latest: latestVersion})}} ·
{{ $t("settings.current") }}
{{ version }} |
{{ $t("settings.latest") }}
{{ latestVersion }}
·
<a href="https://hay-kot.github.io/mealie/" target="_blank">
{{$t('settings.explore-the-docs')}}
{{ $t("settings.explore-the-docs") }}
</a>
·
<a
href="https://hay-kot.github.io/mealie/2.1%20-%20Contributions/"
href="https://hay-kot.github.io/mealie/contributors/non-coders/"
target="_blank"
>
{{$t('settings.contribute')}}
{{ $t("settings.contribute") }}
</a>
</p>
</v-container>
@ -40,7 +54,7 @@ export default {
data() {
return {
latestVersion: null,
version: "v0.0.2",
version: "v0.1.0",
};
},
mounted() {