Skip to content

Commit b116f64

Browse files
committed
feat: enhance role schema descriptions and update clearable property in input components
1 parent 4fc213d commit b116f64

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

apps/web/src/composables/useRolesSchema.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ export default function useRolesSchema() {
3535
"type": "object",
3636
"properties": {
3737
"resource": {
38-
"type": "string"
38+
"type": "string",
39+
"description": "Ressource à accéder (ex: /core/roles)"
3940
},
4041
"action": {
4142
"type": "array",
43+
"description": "Actions autorisées sur la ressource",
4244
"items": {
4345
"type": "string",
4446
"enum": AC_ACTIONS

apps/web/src/jsonforms/controls/acl.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
:hide-hint="persistentHint()"
2020
:error="control.errors !== ''"
2121
:error-message="control.errors"
22-
:clearable="isClearable"
22+
:_clearable="isClearable"
2323
option-label="label"
2424
option-value="key"
2525
emit-value
@@ -66,7 +66,7 @@ import { type ControlElement } from '@jsonforms/core'
6666
import { rendererProps, useJsonFormsControl, type RendererProps } from '@jsonforms/vue'
6767
import { QSelect } from 'quasar'
6868
import { computed, defineComponent } from 'vue'
69-
import { ControlWrapper } from '../common'
69+
import { ControlWrapper, FieldAddons } from '../common'
7070
import { useQuasarControl } from '../utils'
7171
7272
type AclOption = {
@@ -92,6 +92,7 @@ const controlRenderer = defineComponent({
9292
components: {
9393
ControlWrapper,
9494
QSelect,
95+
FieldAddons,
9596
},
9697
props: {
9798
...rendererProps<ControlElement>(),

apps/web/src/jsonforms/controls/input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
:hide-bottom-space="!!control.description"
2929
:maxlength="maxLength"
3030
:counter="counter"
31-
:clearable="isClearable"
31+
:_clearable="isClearable"
3232
:debounce="100"
3333
outlined
3434
stack-label

0 commit comments

Comments
 (0)