Skip to content

Commit

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

This reverts commit 9959d1a.
  • Loading branch information
vinu-deriv authored Oct 17, 2023
1 parent a79bb23 commit ba53b73
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 ba53b73

@vercel
Copy link

@vercel vercel bot commented on ba53b73 Oct 17, 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-git-master.binary.sx
deriv-app.vercel.app
binary.sx
deriv-app.binary.sx

Please sign in to comment.