Commit 975051b8 by Torkel Ödegaard

Closes #94, there is now a "Back to dashboard" link in header when in fullscreen / edit mode

parent 33ec6383
...@@ -25,6 +25,10 @@ function (angular, _, moment) { ...@@ -25,6 +25,10 @@ function (angular, _, moment) {
}); });
}; };
$scope.exitFullscreen = function() {
$rootScope.$emit('panel-fullscreen-exit');
};
$scope.showDropdown = function(type) { $scope.showDropdown = function(type) {
if(_.isUndefined(dashboard.current.loader)) { if(_.isUndefined(dashboard.current.loader)) {
return true; return true;
......
...@@ -4,6 +4,12 @@ ...@@ -4,6 +4,12 @@
} }
</style> </style>
<li ng-show="fullscreen">
<a ng-click="exitFullscreen()">
Back to dashboard
</a>
</li>
<li> <li>
<a class='small' ng-click='zoom(2)'> <a class='small' ng-click='zoom(2)'>
Zoom Out Zoom Out
......
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