diff --git a/src/web/app/desktop/tags/drive/browser.tag b/src/web/app/desktop/tags/drive/browser.tag index d121d4736c..586bc47a9b 100644 --- a/src/web/app/desktop/tags/drive/browser.tag +++ b/src/web/app/desktop/tags/drive/browser.tag @@ -4,7 +4,9 @@ - { folder.name } + + + { folder.name } @@ -477,7 +479,9 @@ }; this.urlUpload = () => { - inputDialog('%i18n:desktop.tags.mk-drive-browser.url-upload%', '%i18n:desktop.tags.mk-drive-browser.url-of-file%', null, url => { + inputDialog('%i18n:desktop.tags.mk-drive-browser.url-upload%', + '%i18n:desktop.tags.mk-drive-browser.url-of-file%', null, url => { + this.api('drive/files/upload_from_url', { url: url, folder_id: this.folder ? this.folder.id : undefined @@ -491,7 +495,9 @@ }; this.createFolder = () => { - inputDialog('%i18n:desktop.tags.mk-drive-browser.create-folder%', '%i18n:desktop.tags.mk-drive-browser.folder-name%', null, name => { + inputDialog('%i18n:desktop.tags.mk-drive-browser.create-folder%', + '%i18n:desktop.tags.mk-drive-browser.folder-name%', null, name => { + this.api('drive/folders/create', { name: name, folder_id: this.folder ? this.folder.id : undefined