refactor: post-form-attaches to composition api #60

Merged
Johann150 merged 5 commits from :refactor/post-form-attaches.vue into main 2022-08-11 09:17:17 +00:00
Showing only changes of commit 21b78274aa - Show all commits

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;