From cce0311c1dfbe57e0fbd6082284d8360a9c54239 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 18 Feb 2021 08:35:45 +0100 Subject: [PATCH] Order-Controller: Knopf f. E-Mail-Aktion nach "Speichern und drucken" freigeben --- SL/Controller/Order.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 0fb8dc2ee..8d2e972c1 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -350,7 +350,9 @@ sub action_print { $self->save_history('PRINTED'); - $self->js->render; + $self->js + ->run('kivi.ActionBar.setEnabled', '#save_and_email_action') + ->render; } # open the email dialog @@ -1861,6 +1863,7 @@ sub setup_edit_action_bar { ], action => [ t8('Save and E-mail'), + id => 'save_and_email_action', call => [ 'kivi.Order.save', 'save_and_show_email_dialog', $::instance_conf->get_order_warn_duplicate_parts ], disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, ], -- 2.20.1