Commit 8a986ec3 by Torkel Ödegaard

Using CTRL+S should not work when dashboardMeta.canSave is false, #1834

parent b0ef659a
......@@ -52,6 +52,10 @@ function (angular, _) {
};
$scope.saveDashboard = function(options) {
if ($scope.dashboardMeta.canSave === false) {
return;
}
var clone = $scope.dashboard.getSaveModelClone();
backendSrv.saveDashboard(clone, options).then(function(data) {
......
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