diff --git a/frontend/src/components/dialog/repo-share-upload-links-dialog.js b/frontend/src/components/dialog/repo-share-upload-links-dialog.js index 90f61dd91e..10591b1bd8 100644 --- a/frontend/src/components/dialog/repo-share-upload-links-dialog.js +++ b/frontend/src/components/dialog/repo-share-upload-links-dialog.js @@ -6,6 +6,7 @@ import { siteRoot, gettext } from '../../utils/constants'; import { Utils } from '../../utils/utils'; import toaster from '../toast'; import Loading from '../loading'; +import EmptyTip from '../empty-tip'; const repoShareUploadLinkItemPropTypes = { item: PropTypes.object.isRequired, @@ -146,7 +147,7 @@ class RepoShareUploadLinksDialog extends React.Component { render() { - const { loading, errorMsg, activeTab } = this.state; + const { loading, errorMsg, activeTab, repoShareUploadLinkList } = this.state; const itemName = '' + Utils.HTMLescape(this.props.repo.repo_name) + ''; const title = gettext('{placeholder} Share/Upload Links').replace('{placeholder}', itemName); @@ -172,7 +173,12 @@ class RepoShareUploadLinksDialog extends React.Component {
{errorMsg}
} - {!loading && !errorMsg && + {!loading && !errorMsg && !repoShareUploadLinkList.length && +{activeTab == 'shareLinks' ? gettext('No share links') : gettext('No upload links')}
+