mirror of
https://github.com/grafana/grafana.git
synced 2025-01-08 15:13:30 -06:00
AppPlugin: avoid app plugin navigation slowness (#16675)
navigation between pages in app plugin is slow, due to use of non angular native promise Fixes #16672
This commit is contained in:
parent
4e54509dde
commit
80cca9c12e
@ -11,10 +11,11 @@ export class AppPageCtrl {
|
||||
navModel: any;
|
||||
|
||||
/** @ngInject */
|
||||
constructor(private $routeParams: any, private $rootScope, private navModelSrv) {
|
||||
constructor(private $routeParams: any, private $rootScope, private navModelSrv, private $q) {
|
||||
this.pluginId = $routeParams.pluginId;
|
||||
|
||||
getPluginSettings(this.pluginId)
|
||||
this.$q
|
||||
.when(getPluginSettings(this.pluginId))
|
||||
.then(settings => {
|
||||
this.initPage(settings);
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user