support cache search in google drive api

This commit is contained in:
Xuan Sang LE
2018-03-03 22:57:05 +01:00
parent 234131bfa1
commit 9ead6c55ef
4 changed files with 17 additions and 0 deletions

View File

@ -311,5 +311,9 @@ self.OS.API.onsearch "Google Drive", (t) ->
file = k.asFileHandler()
file.text = file.basename
file.mime = v.mime
file.iconclass = "fa fa-file"
file.iconclass = "fa fa-folder" if file.mime is "dir"
file.complex = true
file.detail = [{ text: file.path }]
arr.push file
return arr