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

HUE-6273 [oozie] Point app name to correct dashboard URL

Romain Rigaux 8 жил өмнө
parent
commit
7d0f783

+ 1 - 1
apps/oozie/src/oozie/templates/navigation-bar.mako

@@ -64,7 +64,7 @@
                   <img src="${ static('oozie/art/icon_oozie_dashboard_48.png') }" class="app-icon" alt="${ _('Oozie dashboard icon') }" /> ${ _('Oozie Dashboard') }
                 </a>
                 % else:
-                <a title="${ _('Switch to the dashboard') }" href="${getURL(section, dashboard, ENABLE_V2.get())}">
+                <a title="${ _('Switch to the dashboard') }" href="${ is_embeddable and '/hue/jobbrowser/workflows' or getURL(section, dashboard, ENABLE_V2.get())}">
                   <svg class="svg-app-icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#hi-oozie"></use></svg> ${ _('Oozie Editor') }
                 </a>
                 % endif

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

@@ -774,6 +774,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
           { url: '/jobbrowser/jobs/job_*', app: function (ctx) {
             page.redirect('/jobbrowser/jobs/#!id=application_' + _.trimRight(ctx.params[0], '/'));
           }},
+          { url: '/jobbrowser/workflows', app: function () {
+            page.redirect('/jobbrowser/#!workflows');
+          }},
           { url: '/jobbrowser/jobs', app: 'jobbrowser' },
           { url: '/logs', app: 'logs' },
           { url: '/metastore', app: function () {