more syntax fixes

This commit is contained in:
Norm 2022-08-10 20:57:20 -04:00
parent 091bf0f77b
commit 21b78274aa

View file

@ -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;