diff --git a/frontend/src/views/AboutView.vue b/frontend/src/views/AboutView.vue
index 67676f9..65a9182 100644
--- a/frontend/src/views/AboutView.vue
+++ b/frontend/src/views/AboutView.vue
@@ -8,15 +8,9 @@
Janis Hutz (simplePCBuilding): Maintainer, CLI & GUI development, Packaging
ThatPlasma: App name, Logo, testing, Windows installer
+
-
You are currently running version 1.1.0
-
Changelog
-
+
You are currently running version {{ appVersion }}. {{ versionNotice[ isUpToDate ] }}
@@ -25,14 +19,22 @@
export default {
data() {
return {
- version: '',
+ versionNotice: { true: '==> up to date', false: '==> New version available' },
+ appVersion: 'V1.1.0',
+ latestVersion: '',
isUpToDate: true,
+ releaseInfos: '',
}
},
mounted () {
- fetch( 'https://github.com/simplePCBuilding/ImageVideoUpscaler/blob/master/package.json' ).then( res => {
- console.log( res );
- })
+ fetch( 'https://api.github.com/repos/simplePCBuilding/ImageVideoUpscaler/releases/latest' ).then( res => {
+ res.json().then( data => {
+ this.latestVersion = data.tag_name;
+ if ( data.tag_name != this.appVersion ) {
+ this.isUpToDate = false;
+ }
+ } );
+ } );
}
}