ActionBar: Verwendung bei Liquiditätsübersicht
[kivitendo-erp.git] / SL / Layout / ActionBar / Action.pm
index b72314b..4243b65 100644 (file)
@@ -4,7 +4,6 @@ use strict;
 use parent qw(Rose::Object);
 
 use SL::Presenter;
-    require SL::Layout::ActionBar::Submit;
 
 use Rose::Object::MakeMethods::Generic (
   'scalar --get_set_init' => [ qw(id params text) ],
@@ -24,12 +23,16 @@ sub script {
 sub from_params {
   my ($class, $data) = @_;
 
+  require SL::Layout::ActionBar::Submit;
+
   my ($text, %params) = @$data;
   return if exists($params{only_if}) && !$params{only_if};
   return if exists($params{not_if})  &&  $params{not_if};
   return SL::Layout::ActionBar::Submit->new(text => $text, params => \%params);
 }
 
+sub callable { 0 }
+
 # shortcut for presenter
 
 sub p {