Skip to content

Commit

Permalink
feat: Display Viewer's Download button on iOS Flagship app
Browse files Browse the repository at this point in the history
This commit is a revert from  db2303d

In previous commit we removed the Viewer's Download button on iOS
Flagship app as this platform was not able to handle downloads
correctly

Now that we implemented a solution to handle downloads on this platform
we can add this feature back

Related PR: #2215
  • Loading branch information
Ldoppea committed Sep 6, 2022
1 parent b09a495 commit b21726c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions react/Viewer/Footer/ForwardOrDownloadButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react'
import PropTypes from 'prop-types'

import { useClient } from 'cozy-client'
import { isFlagshipApp, isIOS } from 'cozy-device-helper'

import ForwardButton from './ForwardButton'
import DownloadButton from './DownloadButton'
Expand All @@ -15,10 +14,7 @@ const ForwardOrDownloadButton = ({ file }) => {
? ForwardButton
: DownloadButton

// Temporarily disable Download button on iOS Flagship app until
// the download feature is fixed on this platform
// When fixed on this platform, revert this commit from PR #2215
return isFlagshipApp() && isIOS() ? null : <FileActionButton file={file} />
return <FileActionButton file={file} />
}

ForwardOrDownloadButton.propTypes = {
Expand Down

0 comments on commit b21726c

Please sign in to comment.