mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'develop' of github.com:grafana/grafana into develop
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -17,5 +17,6 @@ src/css/*.min.css
|
||||
/data/*
|
||||
/bin/*
|
||||
/grafana-pro
|
||||
/grafana
|
||||
|
||||
grafana.custom.ini
|
||||
|
||||
@@ -43,7 +43,8 @@ godep restore (will pull down all golang lib dependecies in your current GOPATH)
|
||||
go build -o ./bin/grafana .
|
||||
```
|
||||
|
||||
To build less to css for frontend:
|
||||
To build less to css for the frontend you will need a recent version of of node (v0.12.0),
|
||||
npm (v2.5.0) and grunt (v0.4.5). Run the following:
|
||||
|
||||
```
|
||||
npm install
|
||||
|
||||
@@ -106,6 +106,7 @@ func importDashboard(path string, accountId int64) error {
|
||||
if err := jsonParser.Decode(&dash.Data); err != nil {
|
||||
return err
|
||||
}
|
||||
dash.Data["id"] = nil
|
||||
|
||||
cmd := m.SaveDashboardCommand{
|
||||
AccountId: accountId,
|
||||
|
||||
@@ -24,6 +24,7 @@ function (angular, kbn) {
|
||||
return;
|
||||
}
|
||||
var title = kbn.slugifyForUrl(window.grafanaImportDashboard.title);
|
||||
window.grafanaImportDashboard.id = null;
|
||||
$location.path('/dashboard/import/' + title);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user