support cache search in google drive api

This commit is contained in:
Xuan Sang LE
2018-03-03 22:27:54 +01:00
parent 3e388d2b80
commit 234131bfa1
3 changed files with 24 additions and 11 deletions

View File

@ -65,7 +65,7 @@ class SpotlightDialog extends this.OS.GUI.BaseDialog
else
text = @searchbox.value
($ @scheme).css("height", "45px")
return unless text.length > 3
return unless text.length >= 3
result = @_api.search text
return if result.length is 0
@container.set "items", result