From 38e4dcd319a4948b34cc93b8ba6921ba28c08e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?syuilo=E2=AD=90=EF=B8=8F?= Date: Wed, 26 Apr 2017 16:36:29 +0900 Subject: [PATCH] Improve readability --- src/web/app/desktop/tags/drive/browser.tag | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/web/app/desktop/tags/drive/browser.tag b/src/web/app/desktop/tags/drive/browser.tag index d121d4736..586bc47a9 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