Mercurial > lada > lada-client
changeset 1074:ca204e91012f
Enable add-Button only if the user is authorized.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 07 Apr 2016 14:02:51 +0200 |
parents | e79403c3482e |
children | d23427c68285 |
files | app/controller/grid/MessprogrammKategorie.js app/view/grid/DatensatzErzeuger.js app/view/grid/MessprogrammKategorie.js app/view/grid/Probenehmer.js |
diffstat | 4 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controller/grid/MessprogrammKategorie.js Thu Apr 07 12:29:10 2016 +0200 +++ b/app/controller/grid/MessprogrammKategorie.js Thu Apr 07 14:02:51 2016 +0200 @@ -76,8 +76,10 @@ if (!context.record.get('id') || context.record.get('id') === '') { editor.getCmp().store.remove(context.record); + this.buttonToggle(); } context.grid.getSelectionModel().deselect(context.record); + this.buttonToggle(context.grid.getSelectionModel(), context.record); }, /**
--- a/app/view/grid/DatensatzErzeuger.js Thu Apr 07 12:29:10 2016 +0200 +++ b/app/view/grid/DatensatzErzeuger.js Thu Apr 07 14:02:51 2016 +0200 @@ -151,7 +151,6 @@ if (store) { this.removeDocked(Ext.getCmp('ptbar'), true); this.reconfigure(store); - this.down('button[action=add]').enable(); this.addDocked([{ xtype: 'pagingtoolbar', id: 'ptbar',
--- a/app/view/grid/MessprogrammKategorie.js Thu Apr 07 12:29:10 2016 +0200 +++ b/app/view/grid/MessprogrammKategorie.js Thu Apr 07 14:02:51 2016 +0200 @@ -125,7 +125,6 @@ this.removeDocked(ptbar); } - this.down('button[action=add]').enable(); this.addDocked([{ xtype: 'pagingtoolbar', dock: 'bottom',
--- a/app/view/grid/Probenehmer.js Thu Apr 07 12:29:10 2016 +0200 +++ b/app/view/grid/Probenehmer.js Thu Apr 07 14:02:51 2016 +0200 @@ -179,7 +179,6 @@ if (store) { this.removeDocked(Ext.getCmp('ptbar'), true); this.reconfigure(store); - this.down('button[action=add]').enable(); this.addDocked([{ xtype: 'pagingtoolbar', id: 'ptbar',