mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
Closes #94, there is now a "Back to dashboard" link in header when in fullscreen / edit mode
This commit is contained in:
@@ -25,6 +25,10 @@ function (angular, _, moment) {
|
||||
});
|
||||
};
|
||||
|
||||
$scope.exitFullscreen = function() {
|
||||
$rootScope.$emit('panel-fullscreen-exit');
|
||||
};
|
||||
|
||||
$scope.showDropdown = function(type) {
|
||||
if(_.isUndefined(dashboard.current.loader)) {
|
||||
return true;
|
||||
|
||||
@@ -4,6 +4,12 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<li ng-show="fullscreen">
|
||||
<a ng-click="exitFullscreen()">
|
||||
Back to dashboard
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class='small' ng-click='zoom(2)'>
|
||||
Zoom Out
|
||||
|
||||
Reference in New Issue
Block a user