Sha256: 325d9bb04f2c537c9d214ba29883140efd20e6600fc1c6e414a9447b9530c901
Contents?: true
Size: 1.53 KB
Versions: 12
Compression:
Stored size: 1.53 KB
Contents
({ initComponent() { const me = this; me.callParent(); const tag_grid = me.netzkeGetComponent("tag_grid").getView(); const script_grid = me.netzkeGetComponent("script_grid").getView(); const script_form = me.netzkeGetComponent("script_form"); tag_grid.getSelectionModel().on( "selectionchange", function(self, records) { if (records[0] == null) return; const tag_id = records[0].get("id"); me.server.selectTag({ tag_id }); script_grid.getStore().load(); const script_name = null; script_form.server.netzkeLoad({ script_name }); }, me ); script_grid.getSelectionModel().on( "selectionchange", function(self, records) { if (script_grid.getStore().isLoading() == true) return; if (records[0] == null) return; const script_name = records[0].get("name"); me.server.selectScript({ script_name }); script_form.server.netzkeLoad({ script_name }); }, me ); }, scriptRefresh(script_name) { if (!script_name) { this.server.selectScript({}); this.netzkeReload(); } else { this.server.selectScript({ script_name }); this.netzkeGetComponent("tag_grid") .getStore() .load(); this.netzkeGetComponent("script_grid") .getStore() .load(); this.netzkeGetComponent("script_form").server.netzkeLoad({ script_name }); } } });
Version data entries
12 entries across 12 versions & 1 rubygems