-
Notifications
You must be signed in to change notification settings - Fork 56
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
EZP-30024: Simplifies object states table #816
Conversation
Can you add some screenshots? |
done |
<source>Identifier</source> | ||
<target state="new">Identifier</target> | ||
<note>key: tab.details.state_identifier</note> | ||
</trans-unit> | ||
<trans-unit id="69dea878e2926e6a40b3d4e79b1f723d0aa801c7" resname="tab.details.state_name"> | ||
<source>Name</source> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be the same like target
?
<note>key: tab.details.state_name</note> | ||
</trans-unit> | ||
<trans-unit id="5c08278a7b80c4aae97e5683688b5b55b5f5b37e" resname="tab.details.change_state"> | ||
<source>Name</source> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be Change state
?
@@ -70,7 +70,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) | |||
return array_filter( | |||
$this->objectStateService->loadObjectStates($objectStateGroup), | |||
function (ObjectState $objectState) use ($contentInfo, $contentState) { | |||
return $this->permissionResolver->canUser('state', 'assign', $contentInfo, [$objectState]) && $contentState->id !== $objectState->id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pawbuj I'm wondering why you had to remove && $contentState->id !== $objectState->id
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is an additional requirement ordered by @SylvainGuittard to display a list of all states
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is the main goal of this PR.
Users were confused to not see all the object states in the dropdown list. So we display all the states that the user has the rights to change
b72cbd3
to
e9fc3a2
Compare
* EZP-30024: Simplifies object states table * fixes translations * changes color of the set button
Simplifies object states table
Checklist:
$ composer fix-cs
)