diff --git a/src/dashboard/client.go b/src/dashboard/client.go index f653dfc..ba859f4 100644 --- a/src/dashboard/client.go +++ b/src/dashboard/client.go @@ -15,7 +15,12 @@ type client struct { func (s client) List(m *ice.Message, arg ...string) { if len(arg) == 1 { s.Fields(m, model.HOST, model.PORT, model.USERNAME, model.DATABASE) - s.SelectDetail(m, model.UID, arg[0]).PushAction(s.Config).Action(s.Config) + s.SelectDetail(m, model.UID, arg[0]) + if m.Append(model.USERNAME) == "" { + m.EchoInfoButton("", s.Config) + } else { + m.PushAction(s.Config).Action(s.Config) + } } } func (s client) Config(m *ice.Message, arg ...string) { diff --git a/src/dashboard/common.go b/src/dashboard/common.go index c68a1e6..fa0314b 100644 --- a/src/dashboard/common.go +++ b/src/dashboard/common.go @@ -25,10 +25,6 @@ func (s Table) Inputs(m *ice.Message, arg ...string) { s.Hash.Inputs(m, arg...) case ctx.INDEX: s.Hash.Inputs(m, arg...) - case model.TABLES: - s.Hash.Inputs(m, ctx.INDEX) - case model.FIELDS: - m.Push(arg[0], "count(*)") default: s.Table.Inputs(m, arg...) } diff --git a/src/dashboard/summary.go b/src/dashboard/summary.go index a7d4799..b89310d 100644 --- a/src/dashboard/summary.go +++ b/src/dashboard/summary.go @@ -53,6 +53,9 @@ func (s summary) Scan(m *ice.Message, arg ...string) { func (s summary) List(m *ice.Message, arg ...string) *ice.Message { s.Orders(m, model.SCORE, s.Desc(model.CREATED_AT)) s.Select(m, model.CLIENT_UID, arg[0]).Action(s.Create, s.Scan).PushAction(s.Modify, s.Remove).Display("").DisplayCSS("") + if m.Length() == 0 { + m.EchoInfoButton("") + } return m }