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:
teajo 2019-04-19 17:41:59 +02:00 committed by Ryan McKinley
parent 4e54509dde
commit 80cca9c12e

View File

@ -11,10 +11,11 @@ export class AppPageCtrl {
navModel: any; navModel: any;
/** @ngInject */ /** @ngInject */
constructor(private $routeParams: any, private $rootScope, private navModelSrv) { constructor(private $routeParams: any, private $rootScope, private navModelSrv, private $q) {
this.pluginId = $routeParams.pluginId; this.pluginId = $routeParams.pluginId;
getPluginSettings(this.pluginId) this.$q
.when(getPluginSettings(this.pluginId))
.then(settings => { .then(settings => {
this.initPage(settings); this.initPage(settings);
}) })