diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 0bec1e67..43049e34 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -66,6 +66,10 @@ CURRENT TODOs @@@@@@@@@@@ ROADMAP STAGE 2: +todo: Attachments / wiki: wiki html processor needs to append dl token to local files in the wikiview automatically in real time + +downloadToken:"tR6ocdDYzU1WVQpdpH8Ux7AWLKvJhYOKth7bBKLRAM" + todo: ATTACHMENTS - TODO: PLANNING - should attachments be actually attached in the db to their object? like Wiki was changed to do? - is this even possible? diff --git a/ayanova/src/api/authutil.js b/ayanova/src/api/authutil.js index 749fe2e3..9b892403 100644 --- a/ayanova/src/api/authutil.js +++ b/ayanova/src/api/authutil.js @@ -48,7 +48,8 @@ export function processLogin(response) { userId: Number(token.id), userName: token.name, roles: token["ayanova/roles"], - userType: token["usertype"] + userType: token["usertype"], + dlt: token["dlt"] }); //Initialize the application diff --git a/ayanova/src/store.js b/ayanova/src/store.js index e779e5c1..050508c7 100644 --- a/ayanova/src/store.js +++ b/ayanova/src/store.js @@ -15,6 +15,7 @@ export default new Vuex.Store({ apiUrl: "", helpUrl: "", apiToken: "-", + downloadToken: "-", userId: 0, userName: "NOT AUTHENTICATED", roles: 0, @@ -46,10 +47,12 @@ export default new Vuex.Store({ state.apiToken = data.apiToken; state.userName = data.userName; state.userType = data.userType; + state.downloadToken = data.dlt; }, logout(state) { //Things that are reset on logout state.apiToken = "-"; + state.downloadToken = "-"; state.authenticated = false; state.userId = 0; state.userName = "NOT AUTHENTICATED"; diff --git a/ayanova/src/views/widget.vue b/ayanova/src/views/widget.vue index 5b69e00c..36268803 100644 --- a/ayanova/src/views/widget.vue +++ b/ayanova/src/views/widget.vue @@ -169,7 +169,7 @@