Commit 9b93a717 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

The EditAndLaod wizard can be execute in all cases but not when the record is...

The EditAndLaod wizard can be execute in all cases but not when the record is already in the database.
parent 5d584287
......@@ -354,11 +354,12 @@
view.getSelectionModel().select(view.dataSource.data.get(index));
record = view.getSelectionModel().getSelection()[0];
// the editAndInsert action is only available when the record is rejected
if (record.get('action') === 'reject') {
menu.items.get('editAndInsert').setDisabled(false);
} else {
// the editAndInsert action is only available when the record is
// not already in the database
if (record.get('action') === 'idle') {
menu.items.get('editAndInsert').setDisabled(true);
} else {
menu.items.get('editAndInsert').setDisabled(false);
}
// show the menu
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment