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