allow headers on transaction lists
[xtuple] / lib / enyo-x / source / views / transaction_list_container.js
index a69dfc2..aeab330 100644 (file)
@@ -14,7 +14,7 @@ trailing:true, white:true, strict:false*/
    */
   var transactionListContainer =  /** @lends XV.TransactionListContainer# */ {
     name: "XV.TransactionListContainer",
-    kind: "XV.AppPanels",
+    kind: "XV.SearchPanels",
     classes: 'xv-search',
     published: {
       prerequisite: "",
@@ -226,7 +226,8 @@ trailing:true, white:true, strict:false*/
     */
     setList: function (options) {
       var component,
-      list = options.list;
+        contentHeader = this.$.contentHeader,
+        list = options.list;
 
       component = this.createComponent({
         name: "list",
@@ -247,6 +248,12 @@ trailing:true, white:true, strict:false*/
           memoizeEnabled: false,
           fit: true
         });
+
+        contentHeader.destroyClientControls();
+        if (component.headerComponents) {
+          contentHeader.createComponents(component.headerComponents);
+          contentHeader.render();
+        }
       }
 
       this.init = true;