From d55dc9250200c3b1049a41300c09bcff296d67be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 26 Feb 2016 18:55:17 +0100 Subject: [PATCH] feat(plugins): restored config view functionality to plugin page --- .../app/core/directives/plugin_component.ts | 10 +++++----- .../app/features/plugins/partials/edit.html | 20 ++++++++++++++++++- public/sass/_variables.dark.scss | 2 +- 3 files changed, 25 insertions(+), 7 deletions(-) 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 @@ + +
+ +
+ +
+