mini fix for submenuEnabled being undefined, when initiating a dashboard with empty model

This commit is contained in:
Torkel Ödegaard 2015-01-28 14:24:11 +01:00
parent c0353ab5d8
commit cf5595bd64

View File

@ -105,7 +105,7 @@ function (angular, $, config, _) {
};
$scope.checkFeatureToggles = function() {
$scope.submenuEnabled = $scope.dashboard.templating.enable || $scope.dashboard.annotations.enable;
$scope.submenuEnabled = $scope.dashboard.templating.enable || $scope.dashboard.annotations.enable || false;
};
$scope.onDrop = function(panelId, row, dropTarget) {