Эх сурвалжийг харах

HUE-8313 [core] Remove Welcome tour when using embedded mode

(cherry picked from commit db9c486a04cff23bb345279c2de603c112e58ce8)
Romain Rigaux 7 жил өмнө
parent
commit
118d9c213e

+ 1 - 1
desktop/core/src/desktop/templates/hue.mako

@@ -1780,7 +1780,7 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
       }
     };
 
-    % if is_demo or not user_preferences.get(PREFERENCE_IS_WELCOME_TOUR_SEEN):
+    % if is_demo or (not user_preferences.get(PREFERENCE_IS_WELCOME_TOUR_SEEN) and not IS_EMBEDDED.get()):
       $(document).on('keyup', closeTourOnEsc);
       $(document).on('click', '.shepherd-backdrop', tour.cancel);
       tour.start();