-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Create a new taglib to capture the save/apply bottom bar #9813
Conversation
* Add Save/Apply to LogRecorder configuration screen
<f:apply /> | ||
</f:bottomButtonBar> | ||
</l:hasAdministerOrManage> | ||
<j:set var="readOnlyMode" value="${!h.hasPermission(app.MANAGE)}"/> |
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.
Needed because of https://github.com/jenkinsci/jenkins/pull/9813/files#diff-04f3f5f17eaeb24ac6c8f50acae68a658010e18d2de16105942d34e151542fbfR57 overrriding the first defined value.
@@ -55,12 +55,8 @@ THE SOFTWARE. | |||
<!-- view property configurations --> | |||
<f:descriptorList descriptors="${it.getVisiblePropertyDescriptors()}" instances="${it.properties}" /> | |||
|
|||
<f:bottomButtonBar> | |||
<f:submit value="${%OK}" /> |
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.
This effectively changes the label OK
to Save
. But I don't think there was any good reason for this label to differ from other screens.
<f:submit value="${%Save}"/> | ||
</f:bottomButtonBar> | ||
</j:if> | ||
<f:saveApplyBar/> |
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 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.
<f:submit id="saveButton" value="${%Save}" clazz="jenkins-hidden" /> | ||
</f:bottomButtonBar> | ||
</l:isAdmin> | ||
<f:saveApplyBar/> |
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.
<f:submit value="${%Save}"/> | ||
</f:bottomButtonBar> | ||
</l:hasPermission> | ||
<f:saveApplyBar/> |
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 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 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.
/label ready-for-merge
This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback.
Thanks!
This introduces
<f:saveApplyBar/>
, capturing a recurring pattern in our jelly views (originally introduced in fbb2bca)Added save/apply pattern to
Computer
MasterComputer
LogRecorder
Needs Avoid depending on labels, rather use the button name acceptance-test-harness#1754
See JENKINS-XXXXX.
Testing done
Proposed changelog entries
<f:saveApplyBar/>
is now available for configuration forms.Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist