From ffd320dff951ebc4fd8050e53f519bd629b53c80 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 2 May 2019 22:53:31 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 8 ++++++-- ayanova/src/api/gzmenu.js | 13 ------------- ayanova/src/views/login.vue | 2 ++ 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index d4ae5473..90040e85 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -72,13 +72,16 @@ All platforms and browsers - TO TEST: Calendar on iPad in two occasions with ff and opera the calendar date could not be selected until a time was changed then the date worked. Before that it would always stay the same no matter what selection was made and the UI would not show a change on select or press of date either. - Navigation guard: navigate away with unsaved changes should warn and prevent but have option to continue anyway - - Logout needs the same request + - Logout needs the same request + ### RETEST ALL DEVICES WHEN GET TO HERE ##### End to end action - + +TODO UNDER CONSTRUCTION + - show under construction page in every item that has no current view so it's clear it's not just buggy and blank but purposefully so TODO: RIGHTS FOR LIST - TODO LIST OBJECT RESEARCH / DECISION - TODO: ?? DECISION server widget lists and other lists @@ -89,6 +92,7 @@ TODO: RIGHTS FOR LIST - WidgetList should check if even possible to read any part of record, if not then no link to edit - WidgetList should check if Own record possible and check the list object for owner ID (maybe all lists will need to provide owner ID's?) TODO: Persist view on return + - useful info here: https://vuejsdevelopers.com/2017/04/16/vue-js-browser-button-ux/ - there's another item like this below somewhere. - Widget list, refresh page causes items per page to reset back to 5 from custom setting, it should cache that shit at least for a session anyway - Although people probably would want this to be saved to survive sessions diff --git a/ayanova/src/api/gzmenu.js b/ayanova/src/api/gzmenu.js index 7fa5b48f..7c3dcf1b 100644 --- a/ayanova/src/api/gzmenu.js +++ b/ayanova/src/api/gzmenu.js @@ -124,19 +124,6 @@ export default { break; case "logout": vm.$router.push({ name: "login" }); - // if (vm.formState && vm.formState.dirty) { - // vm.$gzdialog.confirmLeaveUnsaved(vm).then(dialogResult => { - // if (dialogResult == true) { - // processLogout(); - // vm.$router.push({ name: "login" }); - // } else { - // return; - // } - // }); - // } else { - // processLogout(); - // vm.$router.push({ name: "login" }); - // } break; case "nav": vm.$router.push({ name: item.data }); diff --git a/ayanova/src/views/login.vue b/ayanova/src/views/login.vue index bb10f25e..e7f39b06 100644 --- a/ayanova/src/views/login.vue +++ b/ayanova/src/views/login.vue @@ -99,6 +99,8 @@ export default { } }, beforeRouteEnter(to, from, next) { + //very important as this in conjunction with the menu options means + //navigation guards work properly by just sending people here next(() => { auth.logout(); next();