Vue.component('follow-up-type', {
    props: [
        'type'
    ],
    data: function() {
        return {
            content: ''
        }
    }
});

Vue.component('follow-up-restrictions', {
    props: [
        'restriction_type',
        'restriction_id'
    ],
    data: function() {
        return {
            restrictions: {}
        }
    },
    created: function () {
        this.load();
    },
    methods: {
        load: function () {
            if (this.restriction_type !== 'all_products') {
                this.$http.get('/modules/BasketRecovery/admin/ajax.php?type=' + this.restriction_type)
                    .then(function (response) {
                        this.restrictions = response.data.data;
                    });
            }
        }
    }
});
