From 134f5e2601369a455e3e755f2f81cb399ffd0da3 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 6 Feb 2018 10:14:30 +0100 Subject: [PATCH] fixes: U4-10935 Intro tour doesn't start automatically on cloud --- src/Umbraco.Web.UI.Client/src/init.js | 11 ++++++++++- .../src/views/dashboard/dashboard.tabs.controller.js | 9 --------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/init.js b/src/Umbraco.Web.UI.Client/src/init.js index cbd3649ca8..e86fa25c42 100644 --- a/src/Umbraco.Web.UI.Client/src/init.js +++ b/src/Umbraco.Web.UI.Client/src/init.js @@ -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); }); diff --git a/src/Umbraco.Web.UI.Client/src/views/dashboard/dashboard.tabs.controller.js b/src/Umbraco.Web.UI.Client/src/views/dashboard/dashboard.tabs.controller.js index f5595f05d5..2cb4e7be50 100644 --- a/src/Umbraco.Web.UI.Client/src/views/dashboard/dashboard.tabs.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/dashboard/dashboard.tabs.controller.js @@ -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) {