Minor corrections

pull/4399/head
utkarshcmu 9 years ago
parent 749fd618a9
commit 9dd6aefcec
  1. 2
      pkg/models/preferences.go
  2. 2
      pkg/services/sqlstore/preferences.go
  3. 2
      public/app/features/dashboard/dashnav/dashnav.ts

@ -39,7 +39,7 @@ type SavePreferencesCommand struct {
UserId int64
OrgId int64
HomeDashboardId int64 `json:"dashboardId"`
HomeDashboardId int64 `json:"homeDashboardId"`
Timezone string `json:"timezone"`
Theme string `json:"theme"`
}

@ -1,9 +1,9 @@
package sqlstore
import (
"time"
"github.com/grafana/grafana/pkg/bus"
m "github.com/grafana/grafana/pkg/models"
"time"
)
func init() {

@ -106,7 +106,7 @@ export class DashNavCtrl {
$scope.saveDashboardAsHome = function() {
// TODO: this backend method needs to be implemented
backendSrv.post('/api/preferences/set-home-dash', {
dashboardId: $scope.dashboard.id
homeDashboardId: $scope.dashboard.id
});
};

Loading…
Cancel
Save