This commit is contained in:
syuilo 2018-02-18 22:14:51 +09:00
parent 211b62eb92
commit 43ee5267c2
5 changed files with 19 additions and 12 deletions

View file

@ -148,7 +148,8 @@ export default Vue.extend({
(this as any).apis.input({
title: '%i18n:desktop.tags.mk-drive-browser-file-contextmenu.rename-file%',
placeholder: '%i18n:desktop.tags.mk-drive-browser-file-contextmenu.input-new-file-name%',
default: this.file.name
default: this.file.name,
allowEmpty: false
}).then(name => {
(this as any).api('drive/files/update', {
file_id: this.file.id,