This commit is contained in:
2020-05-15 18:01:39 +00:00
parent 15a14601e5
commit 60f2511c5c
3 changed files with 29 additions and 4 deletions

View File

@@ -3,6 +3,12 @@
PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route changes etc then back here in order lowest level first as affects the most stuff exponentially so best to do it early
=-=-=-=-
todo: can I receive an email link to an AyaNova object that opens the AyaNova app from email and then the object directly?
- this would make notifications better and other stuff as well
-YES: window.location.search will contain the query term if set on the link to the servers app,
- a link to localhost:8080?go=2,1
- http://localhost:7575?go=2,1
todo: remember scroll position in lists when returning, make sure it is working, will be a pain if not
todo: OPS routes (SERVER AND CLIENT)
@@ -19,10 +25,7 @@ todo: translation page with translation settings
todo: ability to mass tag items from list (SERVER AND CLIENT)
- also a good way to do an initial implementation of a mass ops UI code
todo: ability to mass rename a tag to something else in all objects (SERVER AND CLIENT)
todo: change trial detection route that client first hits
- make it a different controller and renamed to something like server ping or "hello" or something friendly and useful
- maybe the route that gets Notifications
- because there could be a notificatoin type that doesn't need logged in users for general server down announcements etc
todo: WIKI insert image should have extra linefeed before and after because it fails to show the image at all if it follows something like <br> even though it appears to be on the next line
- tl/dr: ensure blank before and after for any url
todo: History - MORE button not showing? Was looking at administrator history for AA import scott

View File

@@ -276,6 +276,22 @@ export default {
window.$gz.eventBus.$off();
},
mounted() {
//Open object after login?
if (window.location.search) {
//https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
var searchParams = new URLSearchParams(window.location.search);
var openObject = {};
//data should be format for open-object-handler
// { type: [AYATYPE], id: [RECORDID] }
if (searchParams.has("type")) {
openObject.type = searchParams.get("type");
if (searchParams.has("id")) {
openObject.type = searchParams.get("id");
}
window.$gz.store.commit("setOpenObject", openObject);
}
}
this.$root.$gzconfirm = this.$refs.gzconfirm.open;
this.$root.$gznotify = this.$refs.gznotify.addNotification;

View File

@@ -10,6 +10,7 @@ Vue.use(Vuex);
export default new Vuex.Store({
plugins: [createPersistedState()],
state: {
openObject: {},
lastClientVersion: "",
authenticated: false,
apiUrl: "",
@@ -122,6 +123,11 @@ export default new Vuex.Store({
},
setHomePage(state, data) {
state.homePage = data;
},
setOpenObject(state, data) {
//data should be format for open-object-handler
// { type: [AYATYPE], id: [RECORDID] }
state.openObject = data;
}
},
actions: {}