Browse Source

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

Johan Ahlen 8 years ago
parent
commit
63e644dbab
1 changed files with 6 additions and 0 deletions
  1. 6 0
      desktop/core/src/desktop/static/desktop/js/sqlAutocompleter3.js

+ 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
         }]);
       }