|
@@ -1,6 +1,6 @@
|
|
|
import * as _ from 'lodash'
|
|
import * as _ from 'lodash'
|
|
|
import { $roleUtils } from '~/services/rights/roleUtils'
|
|
import { $roleUtils } from '~/services/rights/roleUtils'
|
|
|
-import { AbilitiesType, accessState, baseAccessState, baseOrganizationState, Historical } from '~/types/interfaces'
|
|
|
|
|
|
|
+import {AbilitiesType, accessState, baseAccessState, baseOrganizationState, Historical} from '~/types/interfaces'
|
|
|
import { GENDER } from '~/types/enums'
|
|
import { GENDER } from '~/types/enums'
|
|
|
import { MyProfile } from '~/models/Access/MyProfile'
|
|
import { MyProfile } from '~/models/Access/MyProfile'
|
|
|
import { repositoryHelper } from '~/services/store/repository'
|
|
import { repositoryHelper } from '~/services/store/repository'
|
|
@@ -133,7 +133,7 @@ export const mutations = {
|
|
|
|
|
|
|
|
export const actions = {
|
|
export const actions = {
|
|
|
setProfile (context: any, profile: any) {
|
|
setProfile (context: any, profile: any) {
|
|
|
- const rolesArray: Array<string> = Object.values(profile.roles)
|
|
|
|
|
|
|
+ const roles_to_array: Array<string> = Object.values(profile.roles)
|
|
|
|
|
|
|
|
context.commit('setName', profile.name)
|
|
context.commit('setName', profile.name)
|
|
|
context.commit('setGivenName', profile.givenName)
|
|
context.commit('setGivenName', profile.givenName)
|
|
@@ -170,8 +170,8 @@ export const actions = {
|
|
|
|
|
|
|
|
context.dispatch('createNewMyProfileVUexOrmInstance', profile)
|
|
context.dispatch('createNewMyProfileVUexOrmInstance', profile)
|
|
|
},
|
|
},
|
|
|
- setMultiAccesses (context: any, accesses: any) {
|
|
|
|
|
- _.each(accesses, (organization) => {
|
|
|
|
|
|
|
+ setMultiAccesses (context: any, organizations: any) {
|
|
|
|
|
+ _.each(organizations, (organization:baseOrganizationState) => {
|
|
|
const o: baseOrganizationState = {
|
|
const o: baseOrganizationState = {
|
|
|
id: organization.id,
|
|
id: organization.id,
|
|
|
name: organization.name
|
|
name: organization.name
|
|
@@ -180,7 +180,7 @@ export const actions = {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
setFamilyAccesses (context: any, accesses: any) {
|
|
setFamilyAccesses (context: any, accesses: any) {
|
|
|
- _.each(accesses, (access) => {
|
|
|
|
|
|
|
+ _.each(accesses, (access: baseAccessState) => {
|
|
|
const a:baseAccessState = {
|
|
const a:baseAccessState = {
|
|
|
id: access.id,
|
|
id: access.id,
|
|
|
name: access.name,
|
|
name: access.name,
|