aboutsummaryrefslogtreecommitdiff
path: root/resources/vue/components/courseware/widgets/CoursewareShelfActionWidget.vue
blob: c7232c38078f923fb29a2515b41bf058354c0ceb (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
<template>
    <sidebar-widget id="courseware-action-widget"  :title="$gettext('Aktionen')">
        <template #content>
            <ul class="widget-list widget-links cw-action-widget">
                <li class="cw-action-widget-add">
                    <button @click="setShowUnitAddDialog(true)">
                        {{ $gettext('Lernmaterial hinzufügen') }}
                    </button>
                </li>
            </ul>
        </template>
    </sidebar-widget>
</template>

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

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