Skip to content

Commit

Permalink
Show release override in settings form
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterHolvoet committed Mar 5, 2021
1 parent 693634f commit c762952
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Form/SettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function buildForm(array $form, FormStateInterface $form_state)
$setUrl = Url::fromRoute('wmsentry.set_release')->toString();
$unsetUrl = Url::fromRoute('wmsentry.unset_release', ['destination' => $destination])->toString();

$form['release']['#default_value'] = $release;
$form['release']['#disabled'] = true;
$form['release']['#description'] .= sprintf(' <br><b>This value is overridden by the release set
using the <code>%s</code> endpoint. <a href="%s">Remove the override</a>.</b>', $setUrl, $unsetUrl);
Expand Down

0 comments on commit c762952

Please sign in to comment.