Commit fed8cf0e authored by jeromecambon's avatar jeromecambon Committed by benjaminParisel

Feat(open preview full screen): Open preview out of current preview iFrame (#2683)

*  iframe window is now opened with default parameter. Still the issue with the UID URL changed.
parent 2a6a27ce
......@@ -30,6 +30,7 @@
$scope.buildIframeSrc = buildIframeSrc;
$scope.iframeWidth = iframeWidth;
$scope.updateResolutionInUrl = updateResolutionInUrl;
$scope.openExpandedPreviewWindow = openExpandedPreviewWindow;
$scope.isNavCollapsed = true;
artifactRepo
......@@ -78,6 +79,10 @@
$window.close();
}
function openExpandedPreviewWindow() {
$window.open($scope.iframe.src, '_blank');
}
function updateResolutionInUrl(resolution) {
$state.go(`designer.preview`, {
resolution: resolution.key,
......
......@@ -6,7 +6,7 @@
<span class="navbar-brand" translate>Preview - {{pageName}}</span>
</div>
<div class="container-fluid">
<form class="nav navbar-form navbar-right collapse navbar-collapse" uib-collapse="isNavCollapsed">
<form class="nav navbar-form navbar-right collapse navbar-collapse" uib-collapse="isNavCollapsed">
<app-selector on-change="refreshIframe()"></app-selector>
<language-picker on-change="refreshIframe()"></language-picker>
<resolutions-bar
......@@ -14,6 +14,14 @@
id="resolutions"
class="btn-group Preview-resolutionBar">
</resolutions-bar>
<button class="btn btn-bonita-default"
uib-tooltip="{{ 'Expand Preview in new window' | translate }}"
tooltip-placement="bottom"
tooltip-append-to-body="true"
ng-click="openExpandedPreviewWindow()"
>
<i class="fa fa-lg fa-external-link"></i>
</button>
</form>
</div>
</nav>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment