Files
EdgeAdmin/internal/web/actions/default/servers/groups/helper.go

24 lines
387 B
Go
Raw Normal View History

2020-10-29 20:53:08 +08:00
package groups
2020-09-13 20:37:07 +08:00
import (
"github.com/iwind/TeaGo/actions"
"net/http"
)
type Helper struct {
}
func NewHelper() *Helper {
return &Helper{}
}
func (this *Helper) BeforeAction(action *actions.ActionObject) {
if action.Request.Method != http.MethodGet {
return
}
2020-11-27 15:18:32 +08:00
action.Data["teaMenu"] = "servers"
2020-09-13 20:37:07 +08:00
action.Data["mainTab"] = "component"
action.Data["secondMenuItem"] = "group"
}