|
|
@@ -10,6 +10,7 @@ import {
|
|
|
import {computed, ref, Ref} from "@vue/reactivity";
|
|
|
import {useOrganizationProfileStore} from "~/stores/organizationProfile";
|
|
|
import RoleUtils from "~/services/rights/roleUtils";
|
|
|
+import {each} from "lodash";
|
|
|
|
|
|
export const useAccessProfileStore = defineStore('accessProfile', () => {
|
|
|
|
|
|
@@ -65,7 +66,7 @@ export const useAccessProfileStore = defineStore('accessProfile', () => {
|
|
|
|
|
|
// Actions
|
|
|
const setMultiAccesses = (organizations: any) => {
|
|
|
- useEach(organizations, (organization: BaseOrganizationProfile) => {
|
|
|
+ each(organizations, (organization: BaseOrganizationProfile) => {
|
|
|
multiAccesses.value.push({
|
|
|
id: organization.id,
|
|
|
name: organization.name
|
|
|
@@ -74,7 +75,7 @@ export const useAccessProfileStore = defineStore('accessProfile', () => {
|
|
|
}
|
|
|
|
|
|
const setFamilyAccesses = (accesses: any) => {
|
|
|
- useEach(accesses, (access: BaseAccessProfile) => {
|
|
|
+ each(accesses, (access: BaseAccessProfile) => {
|
|
|
const a: BaseAccessProfile = {
|
|
|
id: access.id,
|
|
|
name: access.name,
|