Skip to content

Conversation

bp-cos
Copy link
Contributor

@bp-cos bp-cos commented Aug 19, 2024

Purpose

ENG-5900 Added the ability to make the assertion page read-only for non-admins

Summary of Changes

Passed an 'isElementDisabled' or 'isAdmin' attribute around to the components on the assertion page.

Screenshot(s)

Screenshot 2024-08-19 at 1 55 09 PM

Side Effects

Likely many

QA Notes

Test it

@bp-cos bp-cos requested a review from futa-ikeda August 19, 2024 18:55
Copy link
Contributor

@futa-ikeda futa-ikeda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems legit

Comment on lines 23 to +24
<div local-class='delete-container'>
<Button
data-test-remove-link
aria-label={{t 'preprints.submit.step-assertions.public-link-remove-button'}}
@layout='fake-link'
{{on 'click' this.removeLink}}
>
<FaIcon @icon='times' local-class='delete' />
<EmberTooltip>
{{t 'preprints.submit.step-assertions.public-link-remove-button'}}
</EmberTooltip>
</Button>
{{#unless @disabled}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor nit, could add this {{#unless}} outside of the <div> here

@bp-cos bp-cos merged commit 8610794 into CenterForOpenScience:feature/preprints-affiliations Aug 19, 2024
@bp-cos bp-cos deleted the feature/eng-5900 branch August 19, 2024 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants