@drax/identity-vue 0.0.16 → 0.0.17

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.0.16",
6
+ "version": "0.0.17",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -24,7 +24,7 @@
24
24
  "format": "prettier --write src/"
25
25
  },
26
26
  "dependencies": {
27
- "@drax/common-front": "^0.0.16",
27
+ "@drax/common-front": "^0.0.17",
28
28
  "vue-i18n": "^9.13.1"
29
29
  },
30
30
  "peerDependencies": {
@@ -61,5 +61,5 @@
61
61
  "vue-tsc": "^2.0.11",
62
62
  "vuetify": "^3.6.4"
63
63
  },
64
- "gitHead": "edddb7a152dab85eb7bca07bd79c497bfd12c51f"
64
+ "gitHead": "10c296881a942de671414c7494afecb7c2614e7d"
65
65
  }
@@ -5,7 +5,6 @@ import {useRole} from "../../composables/useRole";
5
5
  import type {IRole} from "@drax/identity-front";
6
6
  import RoleForm from "../../forms/RoleForm.vue";
7
7
  import RoleView from "../../views/RoleView.vue";
8
- import TenantForm from "@/forms/TenantForm.vue";
9
8
 
10
9
  const {createRole, editRole, deleteRole, loading, roleError, inputErrors} = useRole()
11
10
 
@@ -81,7 +80,6 @@ function toCreate() {
81
80
  }
82
81
 
83
82
  function toEdit(item: IRole) {
84
- console.log('toEdit', item)
85
83
  dialogMode.value = 'edit';
86
84
  dialogTitle.value = 'role.updating';
87
85
  const {id, ...rest} = item;
@@ -130,7 +128,7 @@ function toDelete(item: IRole) {
130
128
  <v-dialog v-model="dialog" max-width="800">
131
129
  <v-sheet border>
132
130
  <v-toolbar>
133
- <v-toolbar-title>{{ $t(dialogTitle) }}</v-toolbar-title>
131
+ <v-toolbar-title>{{ dialogTitle ? $t(dialogTitle) : '-' }}</v-toolbar-title>
134
132
  </v-toolbar>
135
133
  <v-card class="pa-10">
136
134
  <v-card-text v-if="roleError">
@@ -24,7 +24,7 @@ const headers = ref([
24
24
  { title: t('role.childRoles'), key: 'childRoles', align: 'start' },
25
25
  { title: t('role.permissions'), key: 'permissions', align: 'start' },
26
26
  { title: t('role.readonly'), key: 'readonly', align: 'start' },
27
- { title: '', key: 'actions', align: 'start', minWidth: '150px' },
27
+ { title: '', key: 'actions', align: 'end', minWidth: '150px' },
28
28
  ])
29
29
 
30
30
  const serverItems = ref([])
@@ -108,8 +108,8 @@ defineExpose({
108
108
  </template>
109
109
 
110
110
  <template v-slot:item.actions="{item}" >
111
- <v-btn v-if="hasPermission('role:update')" :disabled="item.readonly" icon="mdi-pencil" variant="text" color="primary" @click="$emit('toEdit', item)"></v-btn>
112
- <v-btn v-if="hasPermission('role:delete')" :disabled="item.readonly" icon="mdi-delete" class="mr-1" variant="text" color="red" @click="$emit('toDelete', item)"></v-btn>
111
+ <v-btn v-if="hasPermission('role:update')" :disabled="!!item.readonly" icon="mdi-pencil" variant="text" color="primary" @click="$emit('toEdit', item)"></v-btn>
112
+ <v-btn v-if="hasPermission('role:delete')" :disabled="!!item.readonly" icon="mdi-delete" class="mr-1" variant="text" color="red" @click="$emit('toDelete', item)"></v-btn>
113
113
  </template>
114
114
 
115
115
  </v-data-table-server>
@@ -128,7 +128,7 @@ function toDelete(item: ITenant) {
128
128
  <v-dialog v-model="dialog" max-width="800">
129
129
  <v-sheet border>
130
130
  <v-toolbar>
131
- <v-toolbar-title>{{ $t(dialogTitle) }}</v-toolbar-title>
131
+ <v-toolbar-title>{{ dialogTitle ? $t(dialogTitle) : '-' }}</v-toolbar-title>
132
132
  </v-toolbar>
133
133
  <v-card class="pa-10">
134
134
  <v-card-text v-if="tenantError">
@@ -21,7 +21,7 @@ const page = ref(1)
21
21
  const headers = ref([
22
22
  //{title: 'ID', align: 'start', sortable: false, key: 'id'},
23
23
  { title: t('tenant.name'), key: 'name', align: 'start' },
24
- { title: '', key: 'actions', align: 'start', minWidth: '150px' },
24
+ { title: '', key: 'actions', align: 'end', minWidth: '150px' },
25
25
  ])
26
26
 
27
27
  const serverItems = ref([])
@@ -8,7 +8,6 @@ import UserCreateForm from "../../forms/UserCreateForm.vue";
8
8
  import UserEditForm from "../../forms/UserEditForm.vue";
9
9
  import UserPasswordForm from "../../forms/UserPasswordForm.vue";
10
10
  import UserView from "../../views/UserView.vue";
11
- import TenantForm from "@/forms/TenantForm.vue";
12
11
 
13
12
  const {createUser, editUser, changeUserPassword, deleteUser, loading, userError, inputErrors} = useUser()
14
13
 
@@ -160,7 +159,7 @@ function toChangePassword(item: IUser) {
160
159
  <v-dialog v-model="dialog" max-width="800">
161
160
  <v-sheet border>
162
161
  <v-toolbar>
163
- <v-toolbar-title>{{ $t(dialogTitle) }}</v-toolbar-title>
162
+ <v-toolbar-title>{{ dialogTitle ? $t(dialogTitle) : '-' }}</v-toolbar-title>
164
163
  </v-toolbar>
165
164
  <v-card class="pa-10">
166
165
  <v-card-text v-if="userError">
@@ -26,7 +26,7 @@ const headers = ref([
26
26
  { title: t('user.role'), key: 'role.name', align: 'start' },
27
27
  { title: t('user.tenant'), key: 'tenant.name', align: 'start' },
28
28
  { title: t('user.active'), key: 'active', align: 'start' },
29
- { title: '', key: 'actions', align: 'start', fixed:true },
29
+ { title: '', key: 'actions', align: 'end', fixed:true },
30
30
  ])
31
31
 
32
32
  const serverItems = ref([])