Explorar o código

HUE-6077 [frontend] Support the old /notebook routes too

Enrico Berti %!s(int64=8) %!d(string=hai) anos
pai
achega
c2ff40d
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      desktop/core/src/desktop/templates/hue.mako

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

@@ -763,6 +763,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
               self.changeEditorType(window.location.getParameter('type'));
             }
           }},
+          { url: '/notebook/editor', app: function () {
+            page('/editor' + (window.location.getParameter('editor') !== '' ? '?editor=' + window.location.getParameter('editor') : ''));
+          }},
           { url: '/filebrowser/view=*', app:  'filebrowser' },
           { url: '/filebrowser/*', app: function () {
             page('/filebrowser/view=' + DropzoneGlobals.homeDir);
@@ -810,6 +813,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
               });
             }
           }},
+          { url: '/notebook/editor', app: function () {
+            page('/notebook' + (window.location.getParameter('notebook') !== '' ? '?notebook=' + window.location.getParameter('notebook') : ''));
+          }},
           { url: '/oozie/editor/bundle/*', app: 'oozie_bundle' },
           { url: '/oozie/editor/coordinator/*', app: 'oozie_coordinator' },
           { url: '/oozie/editor/workflow/*', app: 'oozie_workflow' },