Skip to content

Commit

Permalink
Fix fileActions .... test to come
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt authored and JammingBen committed Jan 2, 2023
1 parent 28d47a3 commit 35afef5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import Datepicker from './OcDatepicker.vue'
const slotDefault = "<button id='default-slot'>Open datepicker</button>"

describe('OcDatePicker', () => {
// FIXME: Fix Datepicker component first
it.skip('renders default scoped slot', () => {
it('renders default scoped slot', () => {
const wrapper = shallowMount(Datepicker, {
slots: { default: slotDefault },
props: { value: null }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<template>
<div>FIXME</div>
<date-picker class="oc-datepicker" v-bind="$attrs" v-on="$listeners">
<template #default="{ inputValue, togglePopover, hidePopover }">
<!-- @slot Default slot to use as the popover anchor for datepicker -->
<slot :input-value="inputValue" :toggle-popover="togglePopover" :hide-popover="hidePopover" />
</template>
</date-picker>
</template>

<script>
// import DatePicker from 'v-calendar/lib/components/date-picker.umd'
import DatePicker from 'v-calendar/lib/components/date-picker.umd'
/**
* Datepicker component based on [v-calendar](https://vcalendar.io/). For detailed documentation (props, slots, events, etc.), please visit https://vcalendar.io/api/v2.0/calendar.html
Expand All @@ -13,7 +18,7 @@ export default {
status: 'ready',
release: '1.0.0',
// components: { DatePicker },
components: { DatePicker },
inheritAttrs: true
}
Expand Down
2 changes: 1 addition & 1 deletion packages/web-app-files/src/mixins/fileActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {
ShowEditTags
],
computed: {
...mapGetters(['apps']),
...mapState(['apps']),
...mapGetters('Files', ['highlightedFile', 'currentFolder']),
...mapGetters(['capabilities', 'configuration']),

Expand Down

0 comments on commit 35afef5

Please sign in to comment.