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

HUE-7002 [core] Welcome to Hue 4 tour could be also skipped by clicking on the white background

Enrico Berti 8 жил өмнө
parent
commit
7a68432

+ 2 - 0
desktop/core/src/desktop/templates/hue.mako

@@ -1541,9 +1541,11 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
 
     % if is_demo or not user_preferences.get(PREFERENCE_IS_WELCOME_TOUR_SEEN):
       $(document).on('keyup', closeTourOnEsc);
+      $(document).on('click', '.shepherd-backdrop', tour.cancel);
       tour.start();
     % endif
 
+
     tour.on('complete', function () {
       $.post('/desktop/api2/user_preferences/${ PREFERENCE_IS_WELCOME_TOUR_SEEN }', {
         'set': 'seen'