mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 12:02:24 +08:00
feat(apps): minor progress to apps list
This commit is contained in:
@ -20,10 +20,11 @@ type AppPluginCss struct {
|
|||||||
|
|
||||||
type AppPlugin struct {
|
type AppPlugin struct {
|
||||||
FrontendPluginBase
|
FrontendPluginBase
|
||||||
Enabled bool `json:"enabled"`
|
Css *AppPluginCss `json:"css"`
|
||||||
Pinned bool `json:"pinned"`
|
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 {
|
func (p *AppPlugin) Load(decoder *json.Decoder, pluginDir string) error {
|
||||||
|
@ -26,7 +26,15 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
||||||
|
|
||||||
|
<span class="label label-info" ng-if="app.enabled">
|
||||||
|
enabled
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
<span class="filter-list-card-status">
|
<span class="filter-list-card-status">
|
||||||
<span class="filter-list-card-state">Dashboards: 1</span>
|
<span class="filter-list-card-state">Dashboards: 1</span>
|
||||||
</span>
|
</span>
|
||||||
|
Reference in New Issue
Block a user