<template>
    <v-chip 
        small 
        outlined
        :class="{
            clickable : true,
        }"
        @click="ShowCustomersWorkForm"
    >
        {{ customercurs.users_count }}
    </v-chip>
</template>

<script>
    export default {

        props: {
            customercurs: {required: true},
            app: {required: true},
        },

        methods: {
            ShowCustomersWorkForm(e) {
                this.app.classes.Cursuri.cursusersmenu.x = e.clientX;
                this.app.classes.Cursuri.cursusersmenu.y = e.clientY;
                this.app.classes.Cursuri.cursusersmenu.customercurs = this.customercurs;
                this.app.classes.Cursuri.cursusersmenu.visible = true;
            }
        },
        
        name: 'CustomerCursUsers',
    }
</script>