feat(ux): completed work on getting started panel, #6466

This commit is contained in:
Torkel Ödegaard
2016-12-08 10:25:05 +01:00
parent dee6b7d150
commit 05772b30d7
9 changed files with 43 additions and 57 deletions

View File

@ -229,6 +229,10 @@ func (ctx *Context) HasUserRole(role m.RoleType) bool {
return ctx.OrgRole.Includes(role)
}
func (ctx *Context) HasHelpFlag(flag m.HelpFlags1) bool {
return ctx.HelpFlags1.HasFlag(flag)
}
func (ctx *Context) TimeRequest(timer metrics.Timer) {
ctx.Data["perfmon.timer"] = timer
}