Worked on search filter flag IsStarred, and updated frontend with new dashboard list panel

This commit is contained in:
Torkel Ödegaard
2015-02-04 11:35:59 +01:00
parent f0b13153ac
commit 60541a455f
11 changed files with 99 additions and 33 deletions
+2 -3
View File
@@ -1,8 +1,6 @@
package sqlstore
import (
"strconv"
"github.com/go-xorm/xorm"
"github.com/torkelo/grafana-pro/pkg/bus"
@@ -23,11 +21,12 @@ func IsStarredByUser(query *m.IsStarredByUserQuery) error {
if err != nil {
return err
}
if len(results) == 0 {
return nil
}
query.Result, _ = strconv.ParseBool(string(results[0]["1"]))
query.Result = true
return nil
}