This commit is contained in:
2021-07-09 23:41:53 +00:00
parent 231738bc00
commit bb4cb6fbba
5 changed files with 110 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ export default new Vuex.Store({
notifyAvailable: true,
isCustomerUser: false,
isSubContractorUser: false,
isScheduleableUser: false,
customerRights: {},
userId: 0,
userName: "NOT AUTHENTICATED",
@@ -74,6 +75,7 @@ export default new Vuex.Store({
state.userType = data.userType;
state.isSubContractorUser = data.userType == 5;
state.isCustomerUser = data.userType == 3 || data.userType == 4;
state.isScheduleableUser = data.userType == 1 || data.userType == 5;
state.downloadToken = data.dlt;
state.tfaEnabled = data.tfaEnabled;
if (data.customerRights) {
@@ -101,6 +103,7 @@ export default new Vuex.Store({
state.notifyAvailable = true;
state.isCustomerUser = false;
state.isSubContractorUser = false;
state.isScheduleableUser = false;
state.homePage = undefined;
state.navItems = [];
state.translationText = {};