Skip to content

Commit

Permalink
saveas only views folders
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammed-abuodeh committed Sep 18, 2024
1 parent 7e509ed commit 0ee3134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gapiLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ function showSaveAsPicker(accessToken, callback) {
.get(`${SERVER_ORIGIN}/get_gapi_credentials`)
.then((rsp) => {
let credentials = rsp.data;
let view = new google.picker.DocsView(google.picker.ViewId.DOCS)
let view = new google.picker.DocsView(google.picker.ViewId.FOLDERS)
.setParent('root')
.setIncludeFolders(true)
.setSelectFolderEnabled(true);
// view.setMimeTypes("text/plain");
view.setMimeTypes('application/vnd.google-apps.folder');
view.setMode(google.picker.DocsViewMode.LIST);

let picker = new google.picker.PickerBuilder()
Expand Down

0 comments on commit 0ee3134

Please sign in to comment.