Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sentence and sentence menu upon (un)adoption #2923

Merged
merged 1 commit into from
May 1, 2022
Merged

Conversation

trang
Copy link
Member

@trang trang commented Apr 25, 2022

This pull request fixes inconsistent behavior in the new UI when a user adopts/unadopts a sentence.

When a user unadopts a sentence, they should no longer be able to edit the sentence because only the sentence "owner" can edit. And when a user adopts a sentence, they become the owner so they should be able to edit the sentence.

With the changes here, we makes sure that the edit button is removed after unadoption (this fixes #2232) and shown after adoption, and that the sentence data is up-to-date.

Related: #2351

We should allow the contributor to edit when the sentence is adopted and remove the possibility to edit it when it's unadopted.

This also fixes #2232.
@trang trang added this to the 2022-05-01 milestone May 1, 2022
@trang trang merged commit 89bc2db into dev May 1, 2022
@trang trang deleted the issue-2232 branch November 20, 2022 13:41
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.

Closing the sentence edition form changes the ownership icon
1 participant