فهرست منبع

HUE-6325 [jb] Avoid double loading of the jobs list at job browser opening

Enrico Berti 8 سال پیش
والد
کامیت
7e7160f
2فایلهای تغییر یافته به همراه1 افزوده شده و 11 حذف شده
  1. 1 10
      desktop/core/src/desktop/templates/hue.mako
  2. 0 1
      desktop/core/src/desktop/templates/ko_components.mako

+ 1 - 10
desktop/core/src/desktop/templates/hue.mako

@@ -790,16 +790,7 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
           { url: '/jobbrowser/jobs/job_*', app: function (ctx) {
             page.redirect('/jobbrowser#!id=application_' + _.trimRight(ctx.params[0], '/'));
           }},
-          { url: '/jobbrowser*', app: function (ctx) {
-            self.loadApp('jobbrowser');
-            self.getActiveAppViewModel(function (viewModel) {
-              hueUtils.waitForVariable(viewModel.selectInterface, function(){
-                hueUtils.waitForVariable(viewModel.selectInterface, function(){
-                  viewModel.load();
-                });
-              });
-            });
-          }},
+          { url: '/jobbrowser*', app: 'jobbrowser'},
           { url: '/logs', app: 'logs' },
           { url: '/metastore', app: function () {
             page('/metastore/tables');

+ 0 - 1
desktop/core/src/desktop/templates/ko_components.mako

@@ -444,7 +444,6 @@ from desktop.views import _ko
             }).fail(function () {
             window.clearTimeout(checkJobBrowserStatusIdx);
           });
-
         };
 
         // load the mini jobbrowser