Browse Source

Removed 'Back to dashboard' top nav button, now have close button on the edit box below panel

Torkel Ödegaard 10 năm trước cách đây
mục cha
commit
96ad3a04d4

+ 1 - 0
src/app/features/dashboard/dashboardNavCtrl.js

@@ -53,6 +53,7 @@ function (angular, _, moment) {
 
     $scope.dashboardTitleAction = function() {
       $scope.appEvent('hide-dash-editor');
+      $scope.exitFullscreen();
     };
 
     $scope.saveDashboard = function(options) {

+ 4 - 0
src/app/features/panel/partials/panel.html

@@ -30,6 +30,10 @@
 				<div ng-repeat="tab in panelMeta.editorTabs" data-title="{{tab.title}}">
 				</div>
 			</div>
+
+			<button class="gf-box-header-close-btn" ng-click="exitFullscreen();">
+				<i class="fa fa-remove"></i>
+			</button>
 		</div>
 
 		<div class="gf-box-body">

+ 0 - 7
src/app/partials/dashboard_topnav.html

@@ -62,17 +62,10 @@
 			</ul>
 
 			<ul class="nav pull-right">
-				<li ng-show="dashboardViewState.fullscreen">
-					<a ng-click="exitFullscreen()">
-						Back to dashboard
-					</a>
-				</li>
-
 				<li ng-repeat="pulldown in dashboard.nav" ng-controller="PulldownCtrl" ng-show="pulldown.enable">
 					<grafana-simple-panel type="pulldown.type" ng-cloak>
 					</grafana-simple-panel>
 				</li>
-
 			</ul>
 		</div>
 	</div>