Skip to content

Commit

Permalink
Provide UI updates on save
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-richardson committed Nov 19, 2023
1 parent c9fac66 commit a38452c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ BS.ProjectConfigurationSettings = OO.extend(BS.PluginPropertiesForm, OO.extend(B
onCompleteSave: function (form, responseXML, err) {
err = BS.XMLResponse.processErrors(responseXML, {}, BS.PluginPropertiesForm.propertiesErrorsHandler);
form.setSaving(false);
form.enable();
// if (!err) {
// location.reload();
// }
if (err) {
form.enable();
form.focusFirstErrorField();
} else {
BS.reload(true);
}
}
}));
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
Send build trace data to an OpenTelemetry collector, helping you visualize how to optimize your builds and their dependency trees
</div>

<bs:messages key="featureReset"/>
<bs:messages key="featureUpdated"/>

<div class="editSettingsPage">
<form id="editOpenTelemetrySettingsPage">
<form id="editOpenTelemetrySettingsPage" onsubmit="return BS.ProjectConfigurationSettings.save();" method="post" autocomplete="off">
<table class="runnerFormTable">
<c:if test='${isInherited || isOverridden}'>
<tr>
Expand Down Expand Up @@ -130,9 +133,8 @@
</table>

<div class="saveButtonsBlock" id="saveButtons">
<%-- todo: save progress doesn't seem to work --%>
<forms:saving id="saveProgress"/>
<forms:button onclick="BS.ProjectConfigurationSettings.save()">Save</forms:button>
<forms:submit label="Save"/>
<input type="hidden" name="projectId" value="${currentProject.externalId}"/>
<input type="hidden" name="mode" value="save" />
<input type="hidden" id="publicKey" name="publicKey" value="<c:out value='${publicKey}'/>"/>
Expand Down

0 comments on commit a38452c

Please sign in to comment.