fix: component name of plugin page contains 'undefined' (#8590)

This commit is contained in:
Martin Molnar 2017-06-12 15:11:00 +02:00 committed by Torkel Ödegaard
parent 6992b484bc
commit d10d897d65
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
return System.import(appModel.module).then(function(appModule) { return System.import(appModel.module).then(function(appModule) {
return { return {
baseUrl: appModel.baseUrl, baseUrl: appModel.baseUrl,
name: 'app-page-' + appModel.appId + '-' + scope.ctrl.page.slug, name: 'app-page-' + appModel.id + '-' + scope.ctrl.page.slug,
bindings: {appModel: "="}, bindings: {appModel: "="},
attrs: {"app-model": "ctrl.appModel"}, attrs: {"app-model": "ctrl.appModel"},
Component: appModule[scope.ctrl.page.component], Component: appModule[scope.ctrl.page.component],