Explorar o código

HUE-6334 [frontend] Add cancel link to the welcome tour

Enrico Berti %!s(int64=8) %!d(string=hai) anos
pai
achega
e13e9bd

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 1 - 1
desktop/core/src/desktop/static/desktop/less/components/hue-shepherd.less

@@ -294,7 +294,7 @@
   font-size: 1.25em;
   line-height: .8em;
   font-weight: normal;
-  color: rgba(0, 0, 0, 0.5);
+  color: @cui-white;
   opacity: 0.25;
   position: relative;
   top: .1em;

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

@@ -1304,7 +1304,8 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
 
     var tour = new Shepherd.Tour({
       defaults: {
-        classes: 'shepherd-theme-hue'
+        classes: 'shepherd-theme-hue',
+        showCancelLink: true
       }
     });
 
@@ -1319,7 +1320,7 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
 
     %if user.is_superuser:
       tour.addStep('admin', {
-        text: '${ _ko('Since you are a superuser, you can find the default admin wizard inside this dropdown.') }',
+        text: '${ _ko('Since you are a superuser, you can find the default admin wizard inside the user dropdown.') }',
         attachTo: '.top-nav-right .dropdown bottom',
       });
     %endif
@@ -1351,6 +1352,10 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
       ApiHelper.getInstance().setInTotalStorage('tour', 'show.at.start', false);
     });
 
+    tour.on('cancel', function () {
+      ApiHelper.getInstance().setInTotalStorage('tour', 'show.at.start', false);
+    });
+
     huePubSub.subscribe('show.welcome.tour', function () {
       tour.start();
     });

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio