Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

[IB2-428] "Downloads" button in the message after download

  • Loading branch information
Tim Palade authored and mahmoud-adam85 committed Sep 7, 2018
1 parent 912de8e commit 328848c4fc0d2348a2cb42fbedbb423709485287
@@ -49,13 +49,16 @@ extension BrowserViewController: DownloadQueueDelegate {
downloadToast.dismiss(false)

if error == nil {
/* Cliqz: Eliminate Downloads button
let downloadCompleteToast = ButtonToast(labelText: download.filename, imageName: "check", buttonText: Strings.DownloadsButtonTitle, completion: { buttonPressed in
if buttonPressed {
self.openURLInNewTab(HomePanelType.downloads.localhostURL, isPrivate: self.tabManager.selectedTab?.isPrivate ?? false, isPrivileged: true)
UnifiedTelemetry.recordEvent(category: .action, method: .view, object: .downloadsPanel, value: .downloadCompleteToast)
}
})

*/
let downloadCompleteToast = ButtonToast(labelText: download.filename, imageName: "check")

self.show(toast: downloadCompleteToast, duration: DispatchTimeInterval.seconds(8))
} else {
let downloadFailedToast = ButtonToast(labelText: Strings.DownloadFailedToastLabelText, backgroundColor: UIColor.Photon.Grey60, textAlignment: .center)

0 comments on commit 328848c

Please sign in to comment.