mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Opening search closes fullscreen edit or fullscreen view
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user