mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed setting default query color from scripted dashboards
This commit is contained in:
parent
58c6561671
commit
fadcce7074
@ -137,6 +137,7 @@ function (angular, _, config, kbn) {
|
||||
// Check each query object, populate its defaults
|
||||
_.each(self.list,function(query) {
|
||||
query = self.defaults(query);
|
||||
console.log(query);
|
||||
});
|
||||
|
||||
if (self.ids.length === 0) {
|
||||
@ -169,6 +170,7 @@ function (angular, _, config, kbn) {
|
||||
this.defaults = function(query) {
|
||||
_.defaults(query,_query);
|
||||
_.defaults(query,_dTypes[query.type]);
|
||||
query.color = query.color || colorAt(query.id);
|
||||
return query;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user