Merge pull request #3807 from raintank/apiPlugin

allow saving changes to appModel made by configView directive
This commit is contained in:
Torkel Ödegaard 2016-01-20 19:27:57 +01:00
commit b150452db3
2 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,7 @@ func NewAppSettingsDto(def *plugins.AppPlugin, data *models.AppSettings) *AppSet
dto.Enabled = data.Enabled
dto.Pinned = data.Pinned
dto.Info = &def.Info
dto.JsonData = data.JsonData
}
return dto

View File

@ -98,6 +98,8 @@
<div class="simple-box-body">
<div ng-if="ctrl.appModel.appId">
<app-config-view app-model="ctrl.appModel"></app-config-view>
<div class="clearfix"></div>
<button type="submit" class="btn btn-success" ng-click="ctrl.update()">Save</button>
</div>
</div>
</section>