Commit 80cca9c1 by teajo Committed by Ryan McKinley

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
parent 4e54509d
......@@ -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);
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment