From c487805b5988593af36b23bb7a7da665af7f6ef0 Mon Sep 17 00:00:00 2001 From: llj Date: Wed, 28 Aug 2019 11:23:15 +0800 Subject: [PATCH] [shared file view] fixup for download url (#4026) --- .../src/components/shared-file-view/shared-file-view-tip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/shared-file-view/shared-file-view-tip.js b/frontend/src/components/shared-file-view/shared-file-view-tip.js index 90170bf150..0c7add7e79 100644 --- a/frontend/src/components/shared-file-view/shared-file-view-tip.js +++ b/frontend/src/components/shared-file-view/shared-file-view-tip.js @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { gettext } from '../../utils/constants'; -const { err, trafficOverLimit } = window.shared.pageOptions; +const { err, trafficOverLimit, zipped, filePath } = window.shared.pageOptions; const propTypes = { errorMsg: PropTypes.string @@ -21,7 +21,7 @@ class SharedFileViewTip extends React.Component {
{errorMsg} {!trafficOverLimit && - {gettext('Download')} + {gettext('Download')} }