Skip to content

Commit

Permalink
feat(FileActionsHelper): Present upsale sheet instead of store
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-coye committed Feb 12, 2025
1 parent 52ecc89 commit acc6bca
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions kDrive/Utils/FileActionsHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -500,17 +500,8 @@ public final class FileActionsHelper {
}

public static func upsaleFolderColor(driveFileManager: DriveFileManager, from viewController: UIViewController) {
let driveFloatingPanelController = FolderColorFloatingPanelViewController.instantiatePanel()
let floatingPanelViewController = driveFloatingPanelController
.contentViewController as? FolderColorFloatingPanelViewController
floatingPanelViewController?.rightButton.isEnabled = driveFileManager.drive.accountAdmin
floatingPanelViewController?.actionHandler = { _ in
driveFloatingPanelController.dismiss(animated: true) {
@InjectService var router: AppNavigable
router.showStore(from: viewController, driveFileManager: driveFileManager)
}
}
viewController.present(driveFloatingPanelController, animated: true)
@InjectService var router: AppNavigable
router.presentUpSaleSheet()
}
#endif
}

0 comments on commit acc6bca

Please sign in to comment.