chore: only use api version as it is coming from the same codebase
This commit is contained in:
@ -1093,8 +1093,7 @@
|
||||
},
|
||||
"about": {
|
||||
"title": "About",
|
||||
"frontendVersion": "Frontend Version: {version}",
|
||||
"apiVersion": "API Version: {version}"
|
||||
"version": "Version: {version}"
|
||||
},
|
||||
"time": {
|
||||
"units": {
|
||||
|
@ -5,7 +5,6 @@ import pinia from './pinia'
|
||||
import router from './router'
|
||||
import App from './App.vue'
|
||||
import {error, success} from './message'
|
||||
import {VERSION} from './version.json'
|
||||
|
||||
// Notifications
|
||||
import Notifications from '@kyvg/vue3-notification'
|
||||
@ -27,8 +26,6 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
console.info(`Vikunja frontend version ${VERSION}`)
|
||||
|
||||
// Check if we have an api url in local storage and use it if that's the case
|
||||
const apiUrlFromStorage = localStorage.getItem('API_URL')
|
||||
if (apiUrlFromStorage !== null) {
|
||||
|
@ -13,10 +13,7 @@
|
||||
>
|
||||
<div class="p-4">
|
||||
<p>
|
||||
{{ $t('about.frontendVersion', {version: frontendVersion}) }}
|
||||
</p>
|
||||
<p>
|
||||
{{ $t('about.apiVersion', {version: apiVersion}) }}
|
||||
{{ $t('about.version', {version: apiVersion}) }}
|
||||
</p>
|
||||
</div>
|
||||
<template #footer>
|
||||
@ -34,10 +31,8 @@
|
||||
<script setup lang="ts">
|
||||
import {computed} from 'vue'
|
||||
|
||||
import {VERSION} from '@/version.json'
|
||||
import {useConfigStore} from '@/stores/config'
|
||||
|
||||
const configStore = useConfigStore()
|
||||
const apiVersion = computed(() => configStore.version)
|
||||
const frontendVersion = VERSION
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user