1 package Reaction::UI::ViewPort::Action::Role::OK;
4 use MooseX::Types::Moose qw/Str/;
5 with 'Reaction::UI::ViewPort::Action::Role::Close';
7 has ok_label => (is => 'rw', isa => 'Str', lazy_build => 1);
9 sub _build_ok_label { 'ok' }
13 $self->close(@_) if $self->apply(@_);
16 around accept_events => sub {
19 ( ($self->has_on_close_callback ? ('ok') : ()), $self->$orig(@_) );