Opening search closes fullscreen edit or fullscreen view

This commit is contained in:
Torkel Ödegaard
2015-03-30 12:25:17 +02:00
parent de51aeab7b
commit dc03ca8879
11 changed files with 16 additions and 15 deletions

View File

@@ -17,6 +17,10 @@ function (angular, _, config) {
$scope.query = { query: '', tag: '', starred: false };
$scope.currentSearchId = 0;
if ($scope.dashboardViewState.fullscreen) {
$scope.exitFullscreen();
}
$timeout(function() {
$scope.giveSearchFocus = $scope.giveSearchFocus + 1;
$scope.query.query = '';

View File

@@ -16,12 +16,7 @@ function (angular, _, config) {
$scope.inspector = {};
$scope.editPanel = function() {
if ($scope.panelMeta.fullscreen) {
$scope.toggleFullscreen(true);
}
else {
$scope.appEvent('show-dash-editor', { src: 'app/partials/paneleditor.html', scope: $scope });
}
$scope.toggleFullscreen(true);
};
$scope.sharePanel = function() {

View File

@@ -32,7 +32,7 @@
</div>
<button class="gf-box-header-close-btn" ng-click="exitFullscreen();">
<i class="fa fa-remove"></i>
Back to dashboard
</button>
</div>

View File

@@ -27,7 +27,6 @@
</li>
</ul>
<div class="clearfix"></div>
</div>
</div>