diff --git a/frontend/src/components/file-view/file-view-tip.js b/frontend/src/components/file-view/file-view-tip.js index 64a6624676..2fdebc534e 100644 --- a/frontend/src/components/file-view/file-view-tip.js +++ b/frontend/src/components/file-view/file-view-tip.js @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { gettext } from '../../utils/constants'; -const { err, filePerm, fileType, repoID, filePath } = window.app.pageOptions; +const { err } = window.app.pageOptions; const propTypes = { errorMsg: PropTypes.string @@ -18,22 +18,11 @@ class FileViewTip extends React.Component { errorMsg =

{err || this.props.errorMsg}

; } - let canOpenViaClient = false; - if (filePerm == 'rw' && (fileType == 'Document' || fileType == 'SpreadSheet')) { - canOpenViaClient = true; - } - return (
{errorMsg} {gettext('Download')} - {canOpenViaClient && ( - - {gettext('Open via Client')} -

{gettext('Please install the desktop client to open file via client.')}

-
- )}
); diff --git a/frontend/src/css/file-view.css b/frontend/src/css/file-view.css index cb3057c24d..32237f931e 100644 --- a/frontend/src/css/file-view.css +++ b/frontend/src/css/file-view.css @@ -40,13 +40,6 @@ body { background: #f4f4f4; border-right: 4px solid transparent; } -.open-via-client { - display: block; - margin-top: 25px; - color: #333; - font-weight: normal; - text-decoration: underline; -} .tip { color: #808080; }