From d8a8e488a7a52bc5c0f7eb299d21574329f071c2 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 16 Dec 2016 19:34:45 +0100 Subject: [PATCH] ActionBar: move fullscreen action more to the right --- .../Web/Component/ActionBar.php | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/library/Businessprocess/Web/Component/ActionBar.php b/library/Businessprocess/Web/Component/ActionBar.php index a31f257..7536b9f 100644 --- a/library/Businessprocess/Web/Component/ActionBar.php +++ b/library/Businessprocess/Web/Component/ActionBar.php @@ -41,6 +41,20 @@ class ActionBar extends BaseElement ) ); } + + $this->add( + Link::create( + $this->translate('Fullscreen'), + $url->with('showFullscreen', true), + null, + array( + 'class' => 'icon-resize-full-alt', + 'title' => $this->translate('Switch to fullscreen mode'), + 'data-base-target' => '_main', + ) + ) + ); + $hasChanges = $config->hasSimulations() || $config->hasBeenChanged(); if ($renderer->isLocked()) { @@ -83,19 +97,6 @@ class ActionBar extends BaseElement ) ); } - - $this->add( - Link::create( - $this->translate('Fullscreen'), - $url->with('showFullscreen', true), - null, - array( - 'class' => 'icon-resize-full-alt', - 'title' => $this->translate('Switch to fullscreen mode'), - 'data-base-target' => '_main', - ) - ) - ); } protected function currentProcessParams($url)