feat: Add Google Drive picker button to MessageInput component
This commit is contained in:
1 parent
61b1a8fdab
commit
f566c5940a
2 files changed
+12
No files matched your search
@@ -496,6 +496,16 @@
|
||||
uploadFilesHandler={() => {
|
||||
filesInputElement.click();
|
||||
}}
|
||||
uploadGoogleDriveHandler={async () => {
|
||||
try {
|
||||
const fileData = await createPicker();
|
||||
if (fileData) {
|
||||
dispatch('upload', { type: 'google-drive', data: fileData });
|
||||
}
|
||||
} catch (error) {
|
||||
toast.error('Error accessing Google Drive: ' + error.message);
|
||||
}
|
||||
}}
|
||||
onClose={async () => {
|
||||
await tick();
|
||||
|
||||
|
||||
Reference in new issue
Block a user