浏览代码

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

Enrico Berti 8 年之前
父节点
当前提交
7a68432c12
共有 1 个文件被更改,包括 2 次插入0 次删除
  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'