This commit is contained in:
2020-04-21 18:32:31 +00:00
parent cc3e4e204f
commit 9c9f5108c9
4 changed files with 10 additions and 2 deletions

View File

@@ -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?

View File

@@ -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

View File

@@ -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";

View File

@@ -169,7 +169,7 @@
<v-col v-if="form().showMe(this, 'Notes')" cols="12">
<v-textarea
v-model="obj.notes"
v-model="obj.notes"
:readonly="formState.readOnly"
:label="$ay.t('WidgetNotes')"
:error-messages="form().serverErrors(this, 'notes')"