Commit 3430059147e2f229be82255a43a8ccd377842a66

Authored by Erdogan Furkan
1 parent 5d173fb0

#11478 - Done.

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
js/app/views/CatalogUI.js
@@ -126,7 +126,9 @@ Ext.define('amdaUI.CatalogUI', { @@ -126,7 +126,9 @@ Ext.define('amdaUI.CatalogUI', {
126 126
127 updateCount: function () { 127 updateCount: function () {
128 this.object.set('nbIntervals', this.TTGrid.getStore().getTotalCount()); 128 this.object.set('nbIntervals', this.TTGrid.getStore().getTotalCount());
  129 + this.object.set('nbColumns', this.TTGrid.headerCt.getGridColumns().length-7);
129 this.formPanel.getForm().findField('nbIntervals').setValue(this.object.get('nbIntervals')); 130 this.formPanel.getForm().findField('nbIntervals').setValue(this.object.get('nbIntervals'));
  131 + this.formPanel.getForm().findField('nbColumns').setValue(this.object.get('nbColumns'));
130 }, 132 },
131 generateTT: function () { 133 generateTT: function () {
132 if (this.fclose()) { 134 if (this.fclose()) {
@@ -1344,11 +1346,13 @@ Ext.define('amdaUI.CatalogUI', { @@ -1344,11 +1346,13 @@ Ext.define('amdaUI.CatalogUI', {
1344 layout: 'hbox', 1346 layout: 'hbox',
1345 items: [{ 1347 items: [{
1346 xtype: 'datefield', fieldLabel: 'Creation date', 1348 xtype: 'datefield', fieldLabel: 'Creation date',
1347 - name: 'created', disabled: true, 1349 + name: 'created', disabled: true,flex:8,
1348 hideTrigger: true, format: 'Y/m/d H:i:s' 1350 hideTrigger: true, format: 'Y/m/d H:i:s'
1349 }, 1351 },
1350 {xtype: 'splitter'}, 1352 {xtype: 'splitter'},
1351 - {xtype: 'textfield', fieldLabel: 'Intervals', name: 'nbIntervals', disabled: true} 1353 + {xtype: 'textfield', fieldLabel: 'Intervals', name: 'nbIntervals', flex:5, disabled: true},
  1354 + {xtype: 'splitter'},
  1355 + {xtype: 'textfield', fieldLabel: '# Col.', name: 'nbColumns',flex:3, disabled: true}
1352 ] 1356 ]
1353 }, 1357 },
1354 { 1358 {