Skip to content

Commit

Permalink
Revert "fix: updated import toast from gdrive open to file picker (#1…
Browse files Browse the repository at this point in the history
…0406)" (#10636)

This reverts commit cf6c6cd.
  • Loading branch information
vinu-deriv committed Oct 17, 2023
1 parent e65c778 commit 2d564ca
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 2d564ca

Please sign in to comment.