@drax/identity-vue 0.49.0 → 0.49.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.49.0",
6
+ "version": "0.49.2",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -28,7 +28,7 @@
28
28
  "@drax/common-vue": "^0.49.0",
29
29
  "@drax/crud-front": "^0.49.0",
30
30
  "@drax/crud-share": "^0.49.0",
31
- "@drax/crud-vue": "^0.49.0",
31
+ "@drax/crud-vue": "^0.49.2",
32
32
  "@drax/identity-share": "^0.49.0"
33
33
  },
34
34
  "peerDependencies": {
@@ -66,5 +66,5 @@
66
66
  "vue-tsc": "^2.1.6",
67
67
  "vuetify": "^3.7.1"
68
68
  },
69
- "gitHead": "ea99f6fd79d282e6efe02fca660d5733c13bb86d"
69
+ "gitHead": "b6d9055c993340fb31bbad177366a0f5867e9eb1"
70
70
  }
@@ -14,9 +14,9 @@ const valueModel = defineModel({type: [Object]})
14
14
 
15
15
  const emit = defineEmits(['submit', 'cancel'])
16
16
 
17
- const store = useCrudStore()
18
17
  const identityCrudStore = useIdentityCrudStore()
19
18
  const entity = identityCrudStore.roleCrud
19
+ const store = useCrudStore(entity.name)
20
20
 
21
21
  const valid = ref()
22
22
  const formRef = ref()
@@ -3,6 +3,7 @@ import {useFormUtils, useCrudStore} from "@drax/crud-vue";
3
3
  import {defineEmits, defineModel, ref} from "vue";
4
4
  import {useI18nValidation} from "@drax/common-vue";
5
5
  import {useI18n} from "vue-i18n";
6
+ import {useIdentityCrudStore} from "../../stores/IdentityCrudStore";
6
7
 
7
8
  const {$ta} = useI18nValidation()
8
9
  const {t, te} = useI18n()
@@ -11,7 +12,10 @@ const valueModel = defineModel({type: [Object]})
11
12
 
12
13
  const emit = defineEmits(['submit', 'cancel'])
13
14
 
14
- const store = useCrudStore()
15
+ const identityCrudStore = useIdentityCrudStore()
16
+ const entity = identityCrudStore.userApiKeyCrud
17
+
18
+ const store = useCrudStore(entity.name)
15
19
 
16
20
  const valid = ref()
17
21
  const formRef = ref()
@@ -39,7 +39,8 @@ class UserCrud extends EntityCrud implements IEntityCrud {
39
39
  }
40
40
 
41
41
  get isTenantEnabled(){
42
- return import.meta.env.VITE_DRAX_TENANT === 'ENABLE'
42
+ const authStore = useAuthStore()
43
+ return import.meta.env.VITE_DRAX_TENANT === 'ENABLE' && authStore.hasPermission('tenant:view')
43
44
  }
44
45
 
45
46
 
@@ -18,12 +18,14 @@ const valueModel = defineModel({type: [Object]})
18
18
 
19
19
  const emit = defineEmits(['submit', 'cancel'])
20
20
 
21
- const store = useCrudStore()
22
- const enablePassword = store.operation === 'create'
23
-
24
21
  const identityCrudStore = useIdentityCrudStore()
25
22
  const entity = identityCrudStore.userCrud
26
23
 
24
+ const store = useCrudStore(entity.name)
25
+ const enablePassword = store.operation === 'create'
26
+
27
+
28
+
27
29
  const valid = ref()
28
30
  const formRef = ref()
29
31