feat(apps): pages work

This commit is contained in:
Torkel Ödegaard
2016-01-12 15:39:29 +01:00
parent 4c59e48cc2
commit a15984b663
4 changed files with 27 additions and 19 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ import (
)
type AppPluginPage struct {
Text string `json:"text"`
Name string `json:"name"`
Url string `json:"url"`
ReqRole models.RoleType `json:"reqRole"`
}
@@ -19,8 +19,8 @@ type AppPluginCss struct {
type AppPlugin struct {
FrontendPluginBase
Css *AppPluginCss `json:"css"`
Page []*AppPluginPage `json:"page"`
Css *AppPluginCss `json:"css"`
Pages []*AppPluginPage `json:"pages"`
Pinned bool `json:"-"`
Enabled bool `json:"-"`