Browse Source

HUE-9084 [core] Fix eslint in jobBrowserLinks

Romain 6 years ago
parent
commit
99354c6dd2
1 changed files with 16 additions and 22 deletions
  1. 16 22
      desktop/core/src/desktop/js/ko/components/ko.jobBrowserLinks.js

+ 16 - 22
desktop/core/src/desktop/js/ko/components/ko.jobBrowserLinks.js

@@ -108,13 +108,11 @@ class JobBrowserPanel {
 
 
     let lastYarnBrowserRequest = null;
     let lastYarnBrowserRequest = null;
     const checkYarnBrowserStatus = function() {
     const checkYarnBrowserStatus = function() {
-      return $.post(
-        '/jobbrowser/jobs/',
-        {
-          format: 'json',
-          state: 'running',
-          user: window.LOGGED_USERNAME
-        })
+      return $.post('/jobbrowser/jobs/', {
+        format: 'json',
+        state: 'running',
+        user: window.LOGGED_USERNAME
+      })
         .done(data => {
         .done(data => {
           if (data != null && data.jobs != null) {
           if (data != null && data.jobs != null) {
             huePubSub.publish('jobbrowser.data', data.jobs);
             huePubSub.publish('jobbrowser.data', data.jobs);
@@ -124,8 +122,7 @@ class JobBrowserPanel {
         })
         })
         .fail(response => {
         .fail(response => {
           console.warn(response);
           console.warn(response);
-        }
-      );
+        });
     };
     };
     let lastScheduleBrowserRequest = undefined;
     let lastScheduleBrowserRequest = undefined;
     const checkScheduleBrowserStatus = function() {
     const checkScheduleBrowserStatus = function() {
@@ -151,17 +148,15 @@ class JobBrowserPanel {
     };
     };
     let lastHistoryBrowserRequest = null;
     let lastHistoryBrowserRequest = null;
     const checkHistoryBrowserStatus = function() {
     const checkHistoryBrowserStatus = function() {
-      return $.post(
-        '/jobbrowser/api/jobs/history',
-        {
-          interface: ko.mapping.toJSON('history'),
-          filters: ko.mapping.toJSON([
-            { states: ['running'] },
-            { text: 'user:' + window.LOGGED_USERNAME },
-            { time: { time_value: 7, time_unit: 'days' } },
-            { pagination: { page: 1, offset: 1, limit: 1 } }
-          ])
-        })
+      return $.post('/jobbrowser/api/jobs/history', {
+        interface: ko.mapping.toJSON('history'),
+        filters: ko.mapping.toJSON([
+          { states: ['running'] },
+          { text: 'user:' + window.LOGGED_USERNAME },
+          { time: { time_value: 7, time_unit: 'days' } },
+          { pagination: { page: 1, offset: 1, limit: 1 } }
+        ])
+      })
         .done(data => {
         .done(data => {
           if (data != null && data.apps != null) {
           if (data != null && data.apps != null) {
             self.jobCounts()['history'] = data.apps.length;
             self.jobCounts()['history'] = data.apps.length;
@@ -170,8 +165,7 @@ class JobBrowserPanel {
         })
         })
         .fail(response => {
         .fail(response => {
           console.warn(response);
           console.warn(response);
-        }
-      );
+        });
     };
     };
 
 
     let checkJobBrowserStatusIdx = -1;
     let checkJobBrowserStatusIdx = -1;