Skip to content

Commit

Permalink
Fixes #646
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Dec 17, 2024
1 parent 60ead98 commit 060cc30
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 157 deletions.
82 changes: 0 additions & 82 deletions dashboard-gui/src/javascripts/pages/edit_my_idp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,88 +300,6 @@ class EditMyIdp extends React.Component {
</td>
<td>{this.renderInput('organisationDisplayNameNl')}</td>
</tr>
<tr>
<td>{I18n.t('my_idp.published_in_edugain')}</td>
<td>{this.renderCheckbox('publishedInEdugain')}</td>
</tr>
<tr>
<td>
{I18n.t('my_idp.research_and_scholarship_info')}
<span>
<i className="fa fa-info-circle" data-for="connectToRSServicesAutomatically" data-tip></i>
<ReactTooltip
id="connectToRSServicesAutomatically"
type="info"
class="tool-tip"
effect="solid"
multiline={true}
delayHide={1000}
>
<span dangerouslySetInnerHTML={{__html: I18n.t('my_idp.research_and_scholarship_tooltip')}}/>
</ReactTooltip>
</span>
</td>
<td>{this.renderCheckbox('connectToRSServicesAutomatically')}</td>
</tr>
<tr>
<td>
{I18n.t('my_idp.allow_maintainers_to_manage_authz_rules')}
<span>
<i className="fa fa-info-circle" data-for="allowMaintainersToManageAuthzRules" data-tip></i>
<ReactTooltip
id="allowMaintainersToManageAuthzRules"
type="info"
class="tool-tip"
effect="solid"
multiline={true}
delayHide={1000}
>
<span
dangerouslySetInnerHTML={{
__html: I18n.t('my_idp.allow_maintainers_to_manage_authz_rules_tooltip'),
}}
/>
</ReactTooltip>
</span>
</td>
<td>{this.renderCheckbox('allowMaintainersToManageAuthzRules')}</td>
</tr>
<tr>
<td>
{I18n.t('my_idp.displayAdminEmailsInDashboard')}
<span>
<i className="fa fa-info-circle" data-for="displayAdminEmailsInDashboard" data-tip></i>
<ReactTooltip
id="displayAdminEmailsInDashboard"
type="info"
class="tool-tip"
effect="solid"
multiline={true}
>
<span dangerouslySetInnerHTML={{__html: I18n.t('my_idp.displayAdminEmailsInDashboardTooltip')}}/>
</ReactTooltip>
</span>
</td>
<td>{this.renderCheckbox('displayAdminEmailsInDashboard')}</td>
</tr>
<tr>
<td>
{I18n.t('my_idp.displayStatsInDashboard')}
<span>
<i className="fa fa-info-circle" data-for="displayStatsInDashboard" data-tip></i>
<ReactTooltip
id="displayStatsInDashboard"
type="info"
class="tool-tip"
effect="solid"
multiline={true}
>
<span dangerouslySetInnerHTML={{__html: I18n.t('my_idp.displayStatsInDashboardTooltip')}}/>
</ReactTooltip>
</span>
</td>
<td>{this.renderCheckbox('displayStatsInDashboard')}</td>
</tr>
<tr>
<td>{I18n.t('my_idp.state')}</td>
<td>
Expand Down
75 changes: 0 additions & 75 deletions dashboard-gui/src/javascripts/pages/my_idp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ export default function MyIdp() {
{Object.keys(roles).length > 0 && <RolesTable roles={roles}/>}
<GeneralInformation idp={currentIdp} isDashboardAdmin={isDashboardAdmin} currentUser={currentUser}
showModal={setShowStepUpModal}/>
<Settings idp={currentIdp} isDashboardAdmin={isDashboardAdmin} currentUser={currentUser}
showModal={setShowStepUpModal}/>
<ContactPersons idp={currentIdp} isDashboardAdmin={isDashboardAdmin} currentUser={currentUser}
showModal={setShowStepUpModal}/>
</div>
Expand Down Expand Up @@ -108,79 +106,6 @@ function Badge({enabled}) {
)
}

function Settings({idp, isDashboardAdmin, currentUser, showModal}) {
return (
<div className="settings">
<div className="header-with-button">
<h2>{I18n.t('my_idp.settings')}</h2>
{isDashboardAdmin && <EditIdpButton currentUser={currentUser} showModal={showModal}/>}
</div>
<table>
<tbody>
<tr>
<td>{I18n.t('my_idp.published_in_edugain')}</td>
<td>
<Badge enabled={idp.publishedInEdugain}/>
</td>
</tr>
{idp.publishedInEdugain && (
<tr>
<td>{I18n.t('my_idp.date_published_in_edugain')}</td>
<td>{moment(idp.publishInEdugainDate).locale(I18n.locale).format('LLLL')}</td>
</tr>
)}
<tr>
<td>{I18n.t('my_idp.research_and_scholarship_info')}</td>
<td>
<div className="tooltip-container">
<Badge enabled={idp.connectToRSServicesAutomatically}/>
<Tooltip
id="connectToRsServicesAutomatically"
text={I18n.t('my_idp.research_and_scholarship_tooltip')}
/>
</div>
</td>
</tr>
<tr>
<td>{I18n.t('my_idp.allow_maintainers_to_manage_authz_rules')}</td>
<td>
<div className="tooltip-container">
<Badge enabled={idp.allowMaintainersToManageAuthzRules}/>
<Tooltip
id="allowMaintainersToManageAuthzRules"
text={I18n.t('my_idp.allow_maintainers_to_manage_authz_rules_tooltip')}
/>
</div>
</td>
</tr>
<tr>
<td>{I18n.t('my_idp.displayAdminEmailsInDashboard')}</td>
<td>
<div className="tooltip-container">
<Badge enabled={idp.displayAdminEmailsInDashboard}/>
<Tooltip
id="displayAdminEmailsInDashboard"
text={I18n.t('my_idp.displayAdminEmailsInDashboardTooltip')}
/>
</div>
</td>
</tr>
<tr>
<td>{I18n.t('my_idp.displayStatsInDashboard')}</td>
<td>
<div className="tooltip-container">
<Badge enabled={idp.displayStatsInDashboard}/>
<Tooltip id="displayStatsInDashboard"
text={I18n.t('my_idp.displayStatsInDashboardTooltip')}/>
</div>
</td>
</tr>
</tbody>
</table>
</div>
)
}

function GeneralInformation({idp, isDashboardAdmin, currentUser, showModal}) {
return (
<div className="general-information">
Expand Down

0 comments on commit 060cc30

Please sign in to comment.