diff --git a/frontend/src/pages/sys-admin/departments/repo-item.js b/frontend/src/pages/sys-admin/departments/repo-item.js index b185401e8e..135b1f32e1 100644 --- a/frontend/src/pages/sys-admin/departments/repo-item.js +++ b/frontend/src/pages/sys-admin/departments/repo-item.js @@ -3,6 +3,8 @@ import PropTypes from 'prop-types'; import { Utils } from '../../../utils/utils.js'; import { siteRoot, gettext } from '../../../utils/constants'; +const { enableSysAdminViewRepo } = window.sysadmin.pageOptions; + const RepoItemPropTypes = { repo: PropTypes.object.isRequired, showDeleteRepoDialog: PropTypes.func.isRequired, @@ -32,7 +34,11 @@ class RepoItem extends React.Component { return (