forked from FoundKeyGang/FoundKey
more syntax fixes
This commit is contained in:
parent
091bf0f77b
commit
21b78274aa
1 changed files with 2 additions and 2 deletions
|
@ -66,12 +66,12 @@ async function rename(file: DriveFile): Promise<void> {
|
||||||
const { canceled, result } = await os.inputText({
|
const { canceled, result } = await os.inputText({
|
||||||
title: i18n.ts.enterFileName,
|
title: i18n.ts.enterFileName,
|
||||||
default: file.name,
|
default: file.name,
|
||||||
allowEmpty: false,,
|
allowEmpty: false,
|
||||||
});
|
});
|
||||||
if (canceled) return;
|
if (canceled) return;
|
||||||
os.api('drive/files/update', {
|
os.api('drive/files/update', {
|
||||||
fileId: file.id,
|
fileId: file.id,
|
||||||
name: result,,
|
name: result,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
emit('changeName', file, result);
|
emit('changeName', file, result);
|
||||||
file.name = result;
|
file.name = result;
|
||||||
|
|
Loading…
Reference in a new issue