Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
troyeguo committed Dec 23, 2023
1 parent cff320e commit beb6526
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
1 change: 0 additions & 1 deletion src/components/dialogs/backupDialog/backupDialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
display: flex;
justify-content: center;
align-items: center;
opacity: 0.5;
border-radius: 10px;
box-sizing: border-box;
margin-right: 10px;
Expand Down
8 changes: 2 additions & 6 deletions src/components/dialogs/backupDialog/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,8 @@ class BackupDialog extends React.Component<
}

break;
case 2:
this.showMessage("Coming Soon");
break;

case 3:
case 2:
if (!StorageUtil.getReaderConfig("webdav_token")) {
this.props.handleTokenDialog(true);
break;
Expand Down Expand Up @@ -184,7 +181,7 @@ class BackupDialog extends React.Component<
className="backup-page-list-item"
onClick={() => {
//webdav is avavilible on desktop
if (index === 3 && !isElectron) {
if (index === 2 && !isElectron) {
toast(
this.props.t(
"Koodo Reader's web version are limited by the browser, for more powerful features, please download the desktop version."
Expand All @@ -194,7 +191,6 @@ class BackupDialog extends React.Component<
}
this.handleDrive(index);
}}
style={index !== 2 ? { opacity: 1 } : {}}
>
<div className="backup-page-list-item-container">
<span
Expand Down
18 changes: 1 addition & 17 deletions src/constants/driveList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ export const config = {
? "http://localhost:3366"
: "http://localhost:3366",
dropbox_client_id: "vnc67byrssocvy1",
googledrive_client_id:
"99440516227-ifr1ann33f2j610i3ri17ej0i51c7m6e.apps.googleusercontent.com",
onedrive_client_id: "ac96f9bf-94f2-49c0-8418-999b919bc236",
};
export const driveList = [
{
Expand All @@ -25,21 +22,8 @@ export const driveList = [
icon: "dropbox",
url: `https://www.dropbox.com/oauth2/authorize?response_type=token&client_id=${config.dropbox_client_id}&redirect_uri=${config.callback_url}`,
},

{
id: 3,
name: "Google Drive",
icon: "googledrive",
url: "",
},
// {
// id: 4,
// name: "OneDrive",
// icon: "onedrive",
// url: `https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=${config.onedrive_client_id}&scope=files.readwrite offline_access&response_type=code&redirect_uri=${config.callback_url}`,
// },
{
id: 5,
id: 2,
name: "WebDav",
icon: "webdav",
url: "",
Expand Down

0 comments on commit beb6526

Please sign in to comment.