Skip to content

Commit

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

This reverts commit 5958112.
  • Loading branch information
vinu-deriv authored Oct 12, 2023
1 parent 5958112 commit 2b8dc76
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,10 +7,9 @@ import { Localize, localize } from '@deriv/translations';
import { useDBotStore } from 'Stores/useDBotStore';

const GoogleDrive = observer(() => {
const { google_drive, load_modal, dashboard } = useDBotStore();
const { google_drive, load_modal } = 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 @@ -36,7 +35,6 @@ const GoogleDrive = observer(() => {
text={localize('Open')}
onClick={() => {
onDriveOpen();
setOpenSettings('import');
}}
is_loading={is_open_button_loading}
has_effect
Expand Down
2 changes: 2 additions & 0 deletions packages/bot-web-ui/src/stores/google-drive-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ 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 @@ -210,6 +211,7 @@ export default class GoogleDriveStore {
});

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

Expand Down

1 comment on commit 2b8dc76

@vercel
Copy link

@vercel vercel bot commented on 2b8dc76 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.vercel.app
binary.sx
deriv-app.binary.sx
deriv-app-git-master.binary.sx

Please sign in to comment.