|
@@ -5,14 +5,13 @@ import _ from 'lodash';
|
|
|
|
|
|
|
|
export class AppPageCtrl {
|
|
export class AppPageCtrl {
|
|
|
page: any;
|
|
page: any;
|
|
|
- appId: any;
|
|
|
|
|
|
|
+ pluginId: any;
|
|
|
appModel: any;
|
|
appModel: any;
|
|
|
|
|
|
|
|
/** @ngInject */
|
|
/** @ngInject */
|
|
|
constructor(private backendSrv, private $routeParams: any, private $rootScope) {
|
|
constructor(private backendSrv, private $routeParams: any, private $rootScope) {
|
|
|
- this.appId = $routeParams.appId;
|
|
|
|
|
-
|
|
|
|
|
- this.backendSrv.get(`/api/org/apps/${this.appId}/settings`).then(app => {
|
|
|
|
|
|
|
+ this.pluginId = $routeParams.pluginId;
|
|
|
|
|
+ this.backendSrv.get(`/api/org/plugins/${this.pluginId}/settings`).then(app => {
|
|
|
this.appModel = app;
|
|
this.appModel = app;
|
|
|
this.page = _.findWhere(app.pages, {slug: this.$routeParams.slug});
|
|
this.page = _.findWhere(app.pages, {slug: this.$routeParams.slug});
|
|
|
if (!this.page) {
|
|
if (!this.page) {
|