partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

ProjectRunEditorComponent.js (810B)


      1 /**
      2  * Represents the project editor component
      3  */
      4 Ext.define('PartKeepr.ProjectRunEditorComponent', {
      5     extend: 'PartKeepr.EditorComponent',
      6     alias: 'widget.ProjectRunEditorComponent',
      7     navigationClass: 'PartKeepr.ProjectRunGrid',
      8     editorClass: 'PartKeepr.ProjectRunEditor',
      9     titleProperty: 'project.name',
     10     model: 'PartKeepr.ProjectBundle.Entity.ProjectRun',
     11     initComponent: function ()
     12     {
     13         this.createStore({
     14             sorters: [
     15                 {
     16                     property: 'runDateTime',
     17                     direction: 'DESC'
     18                 }
     19             ]
     20         });
     21 
     22         this.callParent();
     23     },
     24     statics: {
     25         iconCls: 'fugue-icon drill',
     26         title: i18n('Project Runs'),
     27         closable: true,
     28         menuPath: [{ text: i18n("View")}]
     29     }
     30 });