Order-Controller: Knopf f. E-Mail-Aktion nach "Speichern und drucken" freigeben
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Thu, 18 Feb 2021 07:35:45 +0000 (08:35 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Thu, 18 Feb 2021 07:35:45 +0000 (08:35 +0100)
SL/Controller/Order.pm

index 0fb8dc2..8d2e972 100644 (file)
@@ -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,
         ],