From ee41b99dad1dc5607232c1631be81d368be4217e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 17 Mar 2017 15:45:19 +0100 Subject: [PATCH] =?utf8?q?ActionBar:=20Unterst=C3=BCtzung=20f=C3=BCr=20?= =?utf8?q?=C2=BBonly=5Fif=C2=AB/=C2=BBnot=5Fif=C2=AB=20bei=20Links?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Layout/ActionBar/Link.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SL/Layout/ActionBar/Link.pm b/SL/Layout/ActionBar/Link.pm index 31560c4be..e6df8b2ea 100644 --- a/SL/Layout/ActionBar/Link.pm +++ b/SL/Layout/ActionBar/Link.pm @@ -7,6 +7,9 @@ sub from_params { my ($class, $data) = @_; 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::Link->new(text => $text, params => \%params); } -- 2.20.1