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({
title: i18n.ts.enterFileName,
default: file.name,
allowEmpty: false,,
allowEmpty: false,
});
if (canceled) return;
os.api('drive/files/update', {
fileId: file.id,
name: result,,
name: result,
}).then(() => {
emit('changeName', file, result);
file.name = result;