use parent qw(Rose::Object);
use SL::Presenter;
- require SL::Layout::ActionBar::Submit;
+require SL::Layout::ActionBar::Submit;
use Rose::Object::MakeMethods::Generic (
'scalar --get_set_init' => [ qw(id params text) ],
return SL::Layout::ActionBar::Submit->new(text => $text, params => \%params);
}
+sub callable { 0 }
+
# shortcut for presenter
sub p {
use parent qw(SL::Layout::ActionBar::Action);
use JSON;
+use List::MoreUtils qw(none);
use Rose::Object::MakeMethods::Generic (
'scalar --get_set_init' => [ qw(actions) ],
sub render {
my ($first, @rest) = @{ $_[0]->actions };
+ return if none { $_->callable } @{ $_[0]->actions };
return $first->render if !@rest;
$_[0]->p->html_tag('div',