Commit 3dc9f792 by Torkel Ödegaard

Fixed unstar issue

parent 9faa1fad
......@@ -30,7 +30,7 @@ function (angular, _, moment) {
$scope.starDashboard = function() {
if ($scope.dashboardMeta.isStarred) {
backendSrv.delete('/api/user/stars/dashboard/' + $scope.dashboard.id).then(function() {
$scope.dashboardMeta.isStarred = true;
$scope.dashboardMeta.isStarred = false;
});
}
else {
......
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