Skip to content

Commit

Permalink
Revert "Revert "Revert "fix: updated import toast from gdrive open to…
Browse files Browse the repository at this point in the history
… file picker (binary-com#10406)" (binary-com#10636)" (binary-com#10638)" (binary-com#10641)

This reverts commit 2b8dc76.
  • Loading branch information
vinu-deriv committed Oct 12, 2023
1 parent 2b8dc76 commit 9959d1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import { Localize, localize } from '@deriv/translations';
import { useDBotStore } from 'Stores/useDBotStore';

const GoogleDrive = observer(() => {
const { google_drive, load_modal } = useDBotStore();
const { google_drive, load_modal, dashboard } = useDBotStore();
const { is_authorised } = google_drive;
const { is_open_button_loading, onDriveConnect, onDriveOpen } = load_modal;
const { setOpenSettings } = dashboard;

return (
<div className='load-strategy__container'>
Expand All @@ -35,6 +36,7 @@ const GoogleDrive = observer(() => {
text={localize('Open')}
onClick={() => {
onDriveOpen();
setOpenSettings('import');
}}
is_loading={is_open_button_loading}
has_effect
Expand Down
2 changes: 0 additions & 2 deletions packages/bot-web-ui/src/stores/google-drive-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ export default class GoogleDriveStore {
const file_name = file.name;
const fileId = file.id;
const { files } = gapi.client.drive;
const { setOpenSettings } = this.root_store.dashboard;

const response = await files.get({
alt: 'media',
Expand All @@ -211,7 +210,6 @@ export default class GoogleDriveStore {
});

resolve({ xml_doc: response.body, file_name });
setOpenSettings('import');
}
};

Expand Down

0 comments on commit 9959d1a

Please sign in to comment.