aboutsummaryrefslogtreecommitdiff
path: root/resources/vue/components/courseware/widgets/CoursewareShelfImportWidget.vue
blob: fd74bf00f7f1bb3191c1b4e386fe4f3502046810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
    <sidebar-widget :title="$gettext('Import')">
        <template #content>
            <ul class="widget-list widget-links cw-import-widget">
                <li class="cw-import-widget-archive">
                    <button @click="setShowUnitImportDialog(true)">
                        {{ $gettext('Lernmaterial importieren') }}
                    </button>
                </li>
                <li class="cw-import-widget-copy">
                    <button @click="setShowUnitCopyDialog(true)">
                        {{ $gettext('Lernmaterial kopieren') }}
                    </button>
                </li>
            </ul>
        </template>
    </sidebar-widget>
</template>

<script>
import SidebarWidget from '../../SidebarWidget.vue';
import { mapActions } from 'vuex';

export default {
    name: 'courseware-shelf-import-widget',
    components: {
        SidebarWidget,
    },
    methods: {
        ...mapActions({
            setShowUnitCopyDialog: 'setShowUnitCopyDialog',
            setShowUnitImportDialog: 'setShowUnitImportDialog',
        }),
    }
}
</script>