diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fbeb7e85..936f4c47c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - Fix a bug: unable to manage stocks on new products - Fix a bug: unsupported param[] syntax in OpenAPI - Fix a bug: unable to access in-system notifications if a slot was cancelled +- Fix a bug: feature tour in admin/settings is broken - Updated react-modal to 3.16.1 - Updated tiptap editor and its dependencies to 2.0.0-beta.204 - [TODO DEPLOY] `rails db:seed` diff --git a/app/frontend/src/javascript/controllers/admin/settings.js b/app/frontend/src/javascript/controllers/admin/settings.js index be27eb280..cff1dfcc1 100644 --- a/app/frontend/src/javascript/controllers/admin/settings.js +++ b/app/frontend/src/javascript/controllers/admin/settings.js @@ -447,10 +447,10 @@ Application.Controllers.controller('SettingsController', ['$scope', '$rootScope' // on step change, change the active tab if needed uitour.on('stepChanged', function (nextStep) { if (nextStep.stepId === 'general') { $scope.tabs.active = 0; } - if (nextStep.stepId === 'home' || nextStep.stepId === 'css') { $scope.tabs.active = 1; } - if (nextStep.stepId === 'about') { $scope.tabs.active = 2; } - if (nextStep.stepId === 'privacy' || nextStep.stepId === 'draft') { $scope.tabs.active = 3; } - if (nextStep.stepId === 'reservations') { $scope.tabs.active = 4; } + if (nextStep.stepId === 'home' || nextStep.stepId === 'css') { $scope.tabs.active = 2; } + if (nextStep.stepId === 'about') { $scope.tabs.active = 3; } + if (nextStep.stepId === 'privacy' || nextStep.stepId === 'draft') { $scope.tabs.active = 4; } + if (nextStep.stepId === 'reservations') { $scope.tabs.active = 5; } }); // on tour end, save the status in database uitour.on('ended', function () {