// File location: RedMagnalister/Views/backend/order/view/magnalister/list/list.js
//{block name="backend/order/view/list/list" append}
//{namespace name=backend/order/view/magnalister/detail}
Ext.define('Shopware.apps.Order.view.magnalister.list.List', {
    /**
     * Defines an override applied to a class.
     * @string
     */
    override: 'Shopware.apps.Order.view.list.List',
    /**
     * Overrides the getColumns function of the overridden ExtJs object
     * and inserts two new columns
     * @return
     */
    getColumns: function () {
        var me = this;

        var columns = me.callOverridden(arguments);
        return Ext.Array.insert(columns, 10, [{
                header: 'magnalister logo',
                dataIndex: 'attribute[magnalisterlogo]',
                flex: 1,
                sortable: false,
                renderer: function (p, v, r) {
                    return  r.get('magnalisterlogo');
                }
            }]);
        ;
    },
});
//{/block} 