mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
(bug) feature tour in admin/settings is broken
This commit is contained in:
parent
eb635ebb34
commit
751cdd62c6
@ -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`
|
||||
|
@ -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 () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user