From 3430059147e2f229be82255a43a8ccd377842a66 Mon Sep 17 00:00:00 2001 From: Furkan Date: Tue, 12 Mar 2024 11:21:41 +0000 Subject: [PATCH] #11478 - Done. --- js/app/views/CatalogUI.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/app/views/CatalogUI.js b/js/app/views/CatalogUI.js index 763b65f..148c035 100644 --- a/js/app/views/CatalogUI.js +++ b/js/app/views/CatalogUI.js @@ -126,7 +126,9 @@ Ext.define('amdaUI.CatalogUI', { updateCount: function () { this.object.set('nbIntervals', this.TTGrid.getStore().getTotalCount()); + this.object.set('nbColumns', this.TTGrid.headerCt.getGridColumns().length-7); this.formPanel.getForm().findField('nbIntervals').setValue(this.object.get('nbIntervals')); + this.formPanel.getForm().findField('nbColumns').setValue(this.object.get('nbColumns')); }, generateTT: function () { if (this.fclose()) { @@ -1344,11 +1346,13 @@ Ext.define('amdaUI.CatalogUI', { layout: 'hbox', items: [{ xtype: 'datefield', fieldLabel: 'Creation date', - name: 'created', disabled: true, + name: 'created', disabled: true,flex:8, hideTrigger: true, format: 'Y/m/d H:i:s' }, {xtype: 'splitter'}, - {xtype: 'textfield', fieldLabel: 'Intervals', name: 'nbIntervals', disabled: true} + {xtype: 'textfield', fieldLabel: 'Intervals', name: 'nbIntervals', flex:5, disabled: true}, + {xtype: 'splitter'}, + {xtype: 'textfield', fieldLabel: '# Col.', name: 'nbColumns',flex:3, disabled: true} ] }, { -- libgit2 0.21.2