mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 05:13:09 +02:00
update local copy of file when describing (#8131)
This commit is contained in:
parent
9a4267f01f
commit
76db7ba781
1 changed files with 4 additions and 2 deletions
|
@ -99,10 +99,12 @@ export default defineComponent({
|
||||||
}, {
|
}, {
|
||||||
done: result => {
|
done: result => {
|
||||||
if (!result || result.canceled) return;
|
if (!result || result.canceled) return;
|
||||||
let comment = result.result;
|
let comment = result.result.length == 0 ? null : result.result;
|
||||||
os.api('drive/files/update', {
|
os.api('drive/files/update', {
|
||||||
fileId: file.id,
|
fileId: file.id,
|
||||||
comment: comment.length == 0 ? null : comment
|
comment: comment,
|
||||||
|
}).then(() => {
|
||||||
|
file.comment = comment;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, 'closed');
|
}, 'closed');
|
||||||
|
|
Loading…
Reference in a new issue