<template>
    <v-sheet tile>

        <template v-if="action != 'delete'">
            <v-row dense>
                    Bam bam

            </v-row>
        </template>

        <cs-info-alert 
            v-else-if="true"
            color="red"
            icon="mdi-alert"
            :message="__('Sunteți sigur că doriți ștergerea contractului :name?', {
                name: 'xxx'
            })"
        />

        <cs-info-alert 
            v-else
            color="red"
            icon="mdi-alert"
            :message="__('Departamentul :name nu se poate șterge. Conține conturi asociate.', {
                name: activeRecord.departament
            })"
        />
    </v-sheet>
</template>

<script>
    export default {

        props: {
            controls: {default: () => ({})},
            activeRecord: {required: true},
            errorsManager: {required: true},
            action: {required: true},
            currentAction: {required: true},
        },

        methods: {
            Focus() {
                
                // this.$refs.First.Focus();
            }
        },

        mounted() {
            if(this.action != 'delete')
            {
                setTimeout( () => {
                    this.Focus();
                }, 150);
            }    
        },

        components: {
            CsTextBox: require('@CsVueComp/controls/texts/CsTextBox').default, 
            // CsEditBox: require('@CsVueComp/controls/texts/CsEditBox').default, 
            // CitySelector: require('@MyDpoComp/Entities/City/Controls/Selector/CitySelector').default,
            // TipOrganizatieSelector: require('@MyDpoComp/Entities/TipOrganizatie/Controls/Selector/TipOrganizatieSelector').default,
            CsInfoAlert: require('@CsVueComp/sheets/CsInfoAlert').default,
        },

        name: 'ComandaInput',
    }
</script>