feat(plugins): restored config view functionality to plugin page

This commit is contained in:
Torkel Ödegaard
2016-02-26 18:55:17 +01:00
parent c148d89004
commit d55dc92502
3 changed files with 25 additions and 7 deletions

View File

@@ -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,
};
});