feat(apps): minor progress to apps list

This commit is contained in:
Torkel Ödegaard 2016-01-11 10:44:04 +01:00
parent c1e94e61d0
commit 4da31291d2
2 changed files with 14 additions and 5 deletions

View File

@ -20,10 +20,11 @@ type AppPluginCss struct {
type AppPlugin struct {
FrontendPluginBase
Enabled bool `json:"enabled"`
Pinned bool `json:"pinned"`
Css *AppPluginCss `json:"css"`
Page *AppPluginPage `json:"page"`
Css *AppPluginCss `json:"css"`
Page *AppPluginPage `json:"page"`
Pinned bool `json:"-"`
Enabled bool `json:"-"`
}
func (p *AppPlugin) Load(decoder *json.Decoder, pluginDir string) error {

View File

@ -26,7 +26,15 @@
</a>
</div>
</div>
<span class="filter-list-card-title">{{app.name}}</span>
<span class="filter-list-card-title">
<a href="apps/edit/{{app.appId}}">
{{app.name}}
</a>
&nbsp; &nbsp;
<span class="label label-info" ng-if="app.enabled">
enabled
</span>
</span>
<span class="filter-list-card-status">
<span class="filter-list-card-state">Dashboards: 1</span>
</span>