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 ({gettext('Please install the desktop client to open file via client.')}
-