mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
replace 'app' with 'plugins' where needed.
This commit is contained in:
parent
6fd0d5e267
commit
641845519d
@ -5,14 +5,13 @@ import _ from 'lodash';
|
||||
|
||||
export class AppPageCtrl {
|
||||
page: any;
|
||||
appId: any;
|
||||
pluginId: any;
|
||||
appModel: any;
|
||||
|
||||
/** @ngInject */
|
||||
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.page = _.findWhere(app.pages, {slug: this.$routeParams.slug});
|
||||
if (!this.page) {
|
||||
|
@ -72,7 +72,7 @@
|
||||
{{ds.name}}
|
||||
</li>
|
||||
<li ng-repeat="page in ctrl.model.pages">
|
||||
<a href="apps/{{ctrl.appId}}/page/{{page.slug}}" class="external-link">{{page.name}}</a>
|
||||
<a href="plugins/{{ctrl.pluginId}}/page/{{page.slug}}" class="external-link">{{page.name}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<navbar icon="icon-gf icon-gf-apps" title="{{ctrl.appModel.name}}" title-url="apps/{{ctrl.appId}}/edit">
|
||||
<navbar icon="icon-gf icon-gf-apps" title="{{ctrl.appModel.name}}" title-url="apps/{{ctrl.pluginId}}/edit">
|
||||
</navbar>
|
||||
|
||||
<div class="page-container">
|
||||
|
Loading…
Reference in New Issue
Block a user