partkeepr

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

SystemNoticeEditorComponent.js (1051B)


      1 /**
      2  * Represents the system notice editor component
      3  */
      4 Ext.define('PartKeepr.SystemNoticeEditorComponent', {
      5     extend: 'PartKeepr.EditorComponent',
      6     alias: 'widget.SystemNoticeEditorComponent',
      7     navigationClass: 'PartKeepr.SystemNoticeGrid',
      8     editorClass: 'PartKeepr.SystemNoticeEditor',
      9     newItemText: i18n("New System Notice"),
     10     model: 'PartKeepr.CoreBundle.Entity.SystemNotice',
     11     titleProperty: "title",
     12     initComponent: function ()
     13     {
     14         this.createStore({
     15             filters: [
     16                 {
     17                     property: 'acknowledged',
     18                     operator: "=",
     19                     value: false
     20                 }
     21             ],
     22             sorters: [
     23                 {
     24                     property: 'date',
     25                     direction: 'DESC'
     26                 },
     27 
     28             ]
     29         });
     30 
     31         this.callParent();
     32     },
     33     statics: {
     34         iconCls: 'fugue-icon service-bell',
     35         title: i18n('System Notices'),
     36         closable: true,
     37         menuPath: [{text: i18n("View")}]
     38     }
     39 });