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

This commit is contained in:
Torkel Ödegaard
2014-02-13 12:41:38 +01:00
parent 33ec638323
commit 975051b8e1
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -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;
+6
View File
@@ -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