Skip to content

Commit

Permalink
fix(admin): fix dropoff input not showing
Browse files Browse the repository at this point in the history
INT-501
  • Loading branch information
EdieLemoine committed Jun 5, 2024
1 parent fa15f5d commit afa4f4b
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions views/backend/admin/src/components/pdk/WcDropOffInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,23 @@
</template>

<script lang="ts" setup>
import {toRefs} from 'vue';
import {
AdminComponent,
type ElementInstance,
generateFieldId,
type Settings,
useDropOffInputContext,
useLanguage,
type DropOffInputModelValue,
} from '@myparcel-pdk/admin';
const props = defineProps<{
// eslint-disable-next-line vue/no-unused-properties
element: ElementInstance;
modelValue: Settings.ModelDropOffPossibilities;
// eslint-disable-next-line vue/no-unused-properties
modelValue: DropOffInputModelValue;
}>();
const emit = defineEmits<(e: 'update:modelValue', value: Settings.ModelDropOffPossibilities) => void>();
const propRefs = toRefs(props);
const emit = defineEmits<(e: 'update:modelValue', value: DropOffInputModelValue) => void>();
const {weekdaysObject, cutoffElements, toggleElements, toggleRefs, cutoffRefs} = useDropOffInputContext(
propRefs.modelValue?.value,
emit,
);
const {weekdaysObject, cutoffElements, toggleElements, toggleRefs, cutoffRefs} = useDropOffInputContext(props, emit);
const id = generateFieldId();
Expand Down

0 comments on commit afa4f4b

Please sign in to comment.