diff --git a/public/app/core/directives/plugin_component.ts b/public/app/core/directives/plugin_component.ts
index 5c3baf3d223..858aab02035 100644
--- a/public/app/core/directives/plugin_component.ts
+++ b/public/app/core/directives/plugin_component.ts
@@ -160,13 +160,13 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
}
// AppConfigCtrl
case 'app-config-ctrl': {
- let appModel = scope.ctrl.appModel;
- return System.import(appModel.module).then(function(appModule) {
+ let model = scope.ctrl.model;
+ return System.import(model.module).then(function(appModule) {
return {
- baseUrl: appModel.baseUrl,
- name: 'app-config-' + appModel.appId,
+ baseUrl: model.baseUrl,
+ name: 'app-config-' + model.pluginId,
bindings: {appModel: "=", appEditCtrl: "="},
- attrs: {"app-model": "ctrl.appModel", "app-edit-ctrl": "ctrl"},
+ attrs: {"app-model": "ctrl.model", "app-edit-ctrl": "ctrl"},
Component: appModule.ConfigCtrl,
};
});
diff --git a/public/app/features/plugins/partials/edit.html b/public/app/features/plugins/partials/edit.html
index fb4600aec26..8747ac66610 100644
--- a/public/app/features/plugins/partials/edit.html
+++ b/public/app/features/plugins/partials/edit.html
@@ -47,6 +47,13 @@