Przeglądaj źródła

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

Enrico Berti 8 lat temu
rodzic
commit
7a68432
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      desktop/core/src/desktop/templates/hue.mako

+ 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'