From b6a3f9bb71a67ca4ec2f3945b3fc372d774accc2 Mon Sep 17 00:00:00 2001 From: troyeguo <13820674+troyeguo@users.noreply.github.com> Date: Sat, 23 Dec 2023 15:03:18 +0800 Subject: [PATCH] fix bug Former-commit-id: beb6526d0ab03c12d3147b62a604ee4d8b6c5b2d --- .../dialogs/backupDialog/backupDialog.css | 1 - .../dialogs/backupDialog/component.tsx | 8 ++------ src/constants/driveList.tsx | 18 +----------------- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/src/components/dialogs/backupDialog/backupDialog.css b/src/components/dialogs/backupDialog/backupDialog.css index 8c3a2f1c..ac42734b 100644 --- a/src/components/dialogs/backupDialog/backupDialog.css +++ b/src/components/dialogs/backupDialog/backupDialog.css @@ -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; diff --git a/src/components/dialogs/backupDialog/component.tsx b/src/components/dialogs/backupDialog/component.tsx index c453b5a0..c08ff8ba 100644 --- a/src/components/dialogs/backupDialog/component.tsx +++ b/src/components/dialogs/backupDialog/component.tsx @@ -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; @@ -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." @@ -194,7 +191,6 @@ class BackupDialog extends React.Component< } this.handleDrive(index); }} - style={index !== 2 ? { opacity: 1 } : {}} >