fixes: U4-10935 Intro tour doesn't start automatically on cloud

This commit is contained in:
Mads Rasmussen
2018-02-06 10:14:30 +01:00
parent 37ac524e8e
commit 134f5e2601
2 changed files with 10 additions and 10 deletions

View File

@@ -20,8 +20,17 @@ app.run(['userService', '$log', '$rootScope', '$location', 'queryStrings', 'navi
assetsService._loadInitAssets().then(function() {
//Register all of the tours on the server
tourService.registerAllTours().then(function (dashboards) {
tourService.registerAllTours().then(function () {
appReady(data);
// Auto start intro tour
tourService.getTourByAlias("umbIntroIntroduction").then(function (introTour) {
// start intro tour if it hasn't been completed or disabled
if (introTour && introTour.disabled !== true && introTour.completed !== true) {
tourService.startTour(introTour);
}
});
}, function(){
appReady(data);
});

View File

@@ -28,19 +28,10 @@ function startUpDynamicContentController($timeout, dashboardResource, assetsServ
vm.startTour = startTour;
function onInit() {
// load tours
tourService.getGroupedTours().then(function(groupedTours) {
vm.tours = groupedTours;
});
// get intro tour
tourService.getTourByAlias("umbIntroIntroduction").then(function (introTour) {
// start intro tour if it hasn't been completed or disabled
if (introTour && introTour.disabled !== true && introTour.completed !== true) {
tourService.startTour(introTour);
}
});
}
function startTour(tour) {