@drax/identity-vue 0.34.3 → 0.35.0
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.
|
|
6
|
+
"version": "0.35.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"format": "prettier --write src/"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@drax/common-front": "^0.
|
|
28
|
-
"@drax/common-vue": "^0.
|
|
29
|
-
"@drax/crud-front": "^0.
|
|
30
|
-
"@drax/crud-share": "^0.
|
|
31
|
-
"@drax/crud-vue": "^0.
|
|
32
|
-
"@drax/identity-share": "^0.
|
|
27
|
+
"@drax/common-front": "^0.35.0",
|
|
28
|
+
"@drax/common-vue": "^0.35.0",
|
|
29
|
+
"@drax/crud-front": "^0.35.0",
|
|
30
|
+
"@drax/crud-share": "^0.35.0",
|
|
31
|
+
"@drax/crud-vue": "^0.35.0",
|
|
32
|
+
"@drax/identity-share": "^0.35.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"pinia": "^2.2.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"vue-tsc": "^2.1.6",
|
|
67
67
|
"vuetify": "^3.7.1"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "d8e9ad20ff3a5bd9e9d4383ef0926b79eac335d8"
|
|
70
70
|
}
|
|
@@ -38,13 +38,17 @@ class UserCrud extends EntityCrud implements IEntityCrud {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
get isTenantEnabled(){
|
|
42
|
+
return import.meta.env.VITE_DRAX_TENANT === 'ENABLE'
|
|
43
|
+
}
|
|
44
|
+
|
|
41
45
|
get headers():IEntityCrudHeader[] {
|
|
42
46
|
return [
|
|
43
47
|
{ title: 'name', key: 'name', align: 'start' },
|
|
44
48
|
{ title: 'username', key: 'username', align: 'start' },
|
|
45
49
|
{ title: 'email', key: 'email', align: 'start' },
|
|
46
50
|
{ title: 'role', key: 'role.name', align: 'start' },
|
|
47
|
-
{ title: 'tenant', key: 'tenant.name', align: 'start' },
|
|
51
|
+
...(this.isTenantEnabled ? [{ title: 'tenant', key: 'tenant.name', align: 'start' as const }] : []),
|
|
48
52
|
{ title: 'active', key: 'active', align: 'start' },
|
|
49
53
|
]
|
|
50
54
|
}
|
|
@@ -27,6 +27,10 @@ const entity = identityCrudStore.userCrud
|
|
|
27
27
|
const valid = ref()
|
|
28
28
|
const formRef = ref()
|
|
29
29
|
|
|
30
|
+
// Add this computed property
|
|
31
|
+
const isTenantEnabled = computed(() => import.meta.env.VITE_DRAX_TENANT === 'ENABLE')
|
|
32
|
+
|
|
33
|
+
|
|
30
34
|
|
|
31
35
|
async function submit() {
|
|
32
36
|
store.resetErrors()
|
|
@@ -136,7 +140,7 @@ let passwordVisibility = ref(false)
|
|
|
136
140
|
></RoleCombobox>
|
|
137
141
|
|
|
138
142
|
<TenantCombobox
|
|
139
|
-
v-if="hasPermission('tenant:manage')"
|
|
143
|
+
v-if="isTenantEnabled && hasPermission('tenant:manage')"
|
|
140
144
|
v-model="valueModel.tenant"
|
|
141
145
|
:label="t('user.field.tenant')"
|
|
142
146
|
:variant="variant"
|