Skip to content

Commit 72e17d0

Browse files
committed
use more descriptive name
1 parent 498cbf1 commit 72e17d0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

packages/vue-vuetify/src/complex/MixedRenderer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ import {
115115
import { DisabledIconFocus } from '../controls';
116116
import {
117117
useCombinatorTranslations,
118-
UseDefaultValueKey,
118+
IsDynamicPropertyContext,
119119
useIcons,
120120
useJsonForms,
121121
useTranslator,
@@ -399,7 +399,7 @@ const controlRenderer = defineComponent({
399399
400400
const currentlyExpanded = ref<number | null>(null);
401401
// use the default value since all properties are dynamic so preserve the property key
402-
provide(UseDefaultValueKey, true);
402+
provide(IsDynamicPropertyContext, true);
403403
404404
return {
405405
...useCombinatorTranslations(useVuetifyControl(input)),

packages/vue-vuetify/src/complex/components/AdditionalProperties.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ import {
147147
useJsonForms,
148148
useTranslator,
149149
} from '../../util';
150-
import { UseDefaultValueKey } from '@/util/inject';
150+
import { IsDynamicPropertyContext } from '@/util/inject';
151151
152152
type Input = ReturnType<typeof useJsonFormsControlWithDetail>;
153153
interface AdditionalPropertyType {
@@ -410,7 +410,7 @@ export default defineComponent({
410410
);
411411
412412
// use the default value since all properties are dynamic so preserve the property key
413-
provide(UseDefaultValueKey, true);
413+
provide(IsDynamicPropertyContext, true);
414414
415415
return {
416416
validationMode: validationMode,

packages/vue-vuetify/src/util/composition.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939
} from 'vue';
4040
import type { IconOptions } from 'vuetify';
4141
import { useStyles } from '../styles';
42-
import { UseDefaultValueKey } from './inject';
42+
import { IsDynamicPropertyContext } from './inject';
4343

4444
export const IconSymbol: InjectionKey<Required<IconOptions>> =
4545
Symbol.for('vuetify:icons');
@@ -493,7 +493,7 @@ export const determineClearValue = (
493493
const jsonforms = useJsonForms();
494494

495495
const useDefaultValue = inject<boolean>(
496-
UseDefaultValueKey,
496+
IsDynamicPropertyContext,
497497
jsonforms.core?.schema.type !== 'object',
498498
);
499499

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { InjectionKey } from 'vue';
22

3-
export const UseDefaultValueKey: InjectionKey<boolean> = Symbol.for(
4-
'jsonforms-vue-vuetify:useDefaultValue',
3+
export const IsDynamicPropertyContext: InjectionKey<boolean> = Symbol.for(
4+
'jsonforms-vue-vuetify:IsDynamicPropertyContext',
55
);

0 commit comments

Comments
 (0)