From 5bec324ff25a2679f403b0090dc976ee1955815d Mon Sep 17 00:00:00 2001 From: fabienSvstr Date: Tue, 31 Oct 2023 18:36:39 +0100 Subject: [PATCH] Update about view --- client/src/views/about/AboutPage.vue | 92 +---------------------- client/src/views/about/AboutView.vue | 107 +++++++++++++++++++++++++-- 2 files changed, 103 insertions(+), 96 deletions(-) diff --git a/client/src/views/about/AboutPage.vue b/client/src/views/about/AboutPage.vue index 734b26554ed..4628aba55ea 100644 --- a/client/src/views/about/AboutPage.vue +++ b/client/src/views/about/AboutPage.vue @@ -9,44 +9,6 @@ > -
- - {{ $t('AboutPage.update.title') }} - -
- {{ $t('AboutPage.update.upToDate') }} -
-
- {{ $t('AboutPage.update.notUpToDate') }} - - {{ $t('AboutPage.update.update') }} - -
- - - - {{ $t('AboutPage.update.showChangelog') }} - -
@@ -54,36 +16,13 @@ diff --git a/client/src/views/about/AboutView.vue b/client/src/views/about/AboutView.vue index 416b6641949..ea41ed33a94 100644 --- a/client/src/views/about/AboutView.vue +++ b/client/src/views/about/AboutView.vue @@ -8,15 +8,44 @@ {{ $t('app.name') }} + +
+ + v.{{ getAppVersion() }} + + {{ $t('AboutPage.update.notUpToDate') }} + + + + + {{ $t('AboutPage.update.update') }} + +
+ {{ $t('AboutPage.appInfo.version') }} - - v{{ getAppVersion() }} - +
+ + v{{ getAppVersion() }} + +
+ {{ $t('AboutPage.update.showChangelog') }} +
+
@@ -81,23 +110,71 @@ import { IonIcon, IonTitle, IonList, + modalController, + IonButton, } from '@ionic/vue'; import { logoGithub, + open, } from 'ionicons/icons'; +import { ref } from 'vue'; import { useI18n } from 'vue-i18n'; import { getAppVersion } from '@/common/mocks'; +import ChangesModal from '@/views/about/ChangesModal.vue'; + +const upToDate = ref(false); + +async function update(): Promise { + console.log('update'); +} useI18n(); + +async function showChangelog(): Promise { + const modal = await modalController.create({ + component: ChangesModal, + cssClass: 'changes-modal', + }); + await modal.present(); + await modal.onWillDismiss(); +}