Pārlūkot izejas kodu

HUE-6106 [autocomplete] Add / as an initial suggestion for empty file paths

Johan Ahlen 8 gadi atpakaļ
vecāks
revīzija
63e644d

+ 6 - 0
desktop/core/src/desktop/static/desktop/js/sqlAutocompleter3.js

@@ -1070,6 +1070,12 @@ var AutocompleteResults = (function () {
           weightAdjust: 0,
           popular: ko.observable(false),
           details: null
+        },{
+          value: '/',
+          meta: 'dir',
+          category: CATEGORIES.HDFS,
+          popular: ko.observable(false),
+          details: null
         }]);
       }