Improve readability
This commit is contained in:
parent
2ce5ac1847
commit
38e4dcd319
|
@ -4,7 +4,9 @@
|
||||||
<mk-drive-browser-nav-folder class={ current: folder == null } folder={ null }></mk-drive-browser-nav-folder>
|
<mk-drive-browser-nav-folder class={ current: folder == null } folder={ null }></mk-drive-browser-nav-folder>
|
||||||
<virtual each={ folder in hierarchyFolders }><span class="separator"><i class="fa fa-angle-right"></i></span>
|
<virtual each={ folder in hierarchyFolders }><span class="separator"><i class="fa fa-angle-right"></i></span>
|
||||||
<mk-drive-browser-nav-folder folder={ folder }></mk-drive-browser-nav-folder>
|
<mk-drive-browser-nav-folder folder={ folder }></mk-drive-browser-nav-folder>
|
||||||
</virtual><span class="separator" if={ folder != null }><i class="fa fa-angle-right"></i></span><span class="folder current" if={ folder != null }>{ folder.name }</span>
|
</virtual>
|
||||||
|
<span class="separator" if={ folder != null }><i class="fa fa-angle-right"></i></span>
|
||||||
|
<span class="folder current" if={ folder != null }>{ folder.name }</span>
|
||||||
</div>
|
</div>
|
||||||
<input class="search" type="search" placeholder=" %i18n:desktop.tags.mk-drive-browser.search%"/>
|
<input class="search" type="search" placeholder=" %i18n:desktop.tags.mk-drive-browser.search%"/>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -477,7 +479,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
this.urlUpload = () => {
|
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', {
|
this.api('drive/files/upload_from_url', {
|
||||||
url: url,
|
url: url,
|
||||||
folder_id: this.folder ? this.folder.id : undefined
|
folder_id: this.folder ? this.folder.id : undefined
|
||||||
|
@ -491,7 +495,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
this.createFolder = () => {
|
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', {
|
this.api('drive/folders/create', {
|
||||||
name: name,
|
name: name,
|
||||||
folder_id: this.folder ? this.folder.id : undefined
|
folder_id: this.folder ? this.folder.id : undefined
|
||||||
|
|
Loading…
Reference in New Issue