Mercurial > lada > lada-client
diff app/view/grid/Status.js @ 994:092e245b13a4
draft implementation of the status-reset function: Todo: move this into a 'confirmation dialog'
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 07 Jan 2016 16:19:41 +0100 |
parents | c2a726887dd7 |
children | bf7bb9583a40 |
line wrap: on
line diff
--- a/app/view/grid/Status.js Thu Jan 07 10:59:46 2016 +0100 +++ b/app/view/grid/Status.js Thu Jan 07 16:19:41 2016 +0100 @@ -60,6 +60,12 @@ xtype: 'toolbar', dock: 'bottom', items: ['->', { + text: 'Zurücksetzen', + icon: 'resources/img/edit-redo.png', + action: 'reset', + probeId: this.probeId, + parentId: this.parentId + }, { text: 'Hinzufügen', icon: 'resources/img/list-add.png', action: 'add', @@ -179,9 +185,11 @@ if (b == true){ //Readonly this.down('button[action=add]').disable(); + this.down('button[action=reset]').disable(); }else{ //Writable this.down('button[action=add]').enable(); + this.down('button[action=reset]').enable(); } } });