<template>
    <v-card
        tile
        flat
        :height="height"
        :width="width"
    >
        <v-card-title class="pa-1">
            {{__('Utilizatori asociați cursului')}}
        </v-card-title>

        <v-card-text class="pa-1">
            <data-table 
                :app="app"
                :dataprovider="app.dataSession.Customercursuriuser"
                :datatable="app.datatables.Cursuriusers"
                :height="height - 48"
                :width="width"
                :dtWidth="app.datatables.Cursuriusers.datatableWidth"
            />
        </v-card-text>
    </v-card>
</template>

<script>
    export default {
        props: {
            app: {required: true},
            height: {default: null},
            width: {default: null},
        },

        created() {
            this.app.dataSession.Customercursuriuser.GetByCustomerCursId(this.app.payload.customer_curs_id);
        },

        name: 'AccesCursUsers',
    }
</script>