diff --git a/ayanova/package.json b/ayanova/package.json
index 3f537cde..89965431 100644
--- a/ayanova/package.json
+++ b/ayanova/package.json
@@ -1,6 +1,6 @@
{
"name": "ayanova",
- "version": "8.0.0-alpha.25",
+ "version": "8.0.0-alpha.29",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue
index 46a080e9..8068f0ad 100644
--- a/ayanova/src/App.vue
+++ b/ayanova/src/App.vue
@@ -10,11 +10,7 @@
https://github.com/vuetifyjs/vuetify/issues/9607
-->
-
-
-
+
{
if (this.refreshing) return;
@@ -402,9 +399,24 @@ export default {
return this.$store.state.newNotificationCount;
},
//PWA update
- showRefreshUI(e) {
+ async showRefreshUI(e) {
this.registration = e.detail;
this.updateExists = true;
+
+ //Ok, if not logged in just force the update immediately
+ if (!this.isAuthenticated) {
+ this.refreshApp();
+ return;
+ }
+
+ //User is logged in offer to update in a dialog with translated text
+ let dialogResult = await window.$gz.dialog.confirmGeneric(
+ "UpdateAvailable"
+ );
+ if (dialogResult == false) {
+ return;
+ }
+ this.refreshApp();
},
refreshApp() {
this.updateExists = false;
diff --git a/ayanova/src/api/ayanova-version.js b/ayanova/src/api/ayanova-version.js
index 45c3bed1..2f271ea1 100644
--- a/ayanova/src/api/ayanova-version.js
+++ b/ayanova/src/api/ayanova-version.js
@@ -1,4 +1,4 @@
export default {
- version: "8.0.0-alpha.25",
+ version: "8.0.0-alpha.29",
copyright: "© 1999-2020, Ground Zero Tech-Works Inc."
};
diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js
index 9d317f46..ccd1815b 100644
--- a/ayanova/src/api/translation.js
+++ b/ayanova/src/api/translation.js
@@ -231,7 +231,8 @@ export default {
"TimeSpanHours",
"TimeSpanMinutes",
"TimeSpanSeconds",
- "DirectNotification"
+ "DirectNotification",
+ "UpdateAvailable"
],
////////////////////////////////////////////////////////