Skip to content

Commit

Permalink
feat: disable display options checkbox when fixer key is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Jul 14, 2024
1 parent c5e8e3d commit 21412cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1215,8 +1215,10 @@ class="thin"><?= $settings['customCss'] ?? "" ?></textarea>
<div>
<div class="form-group-inline">
<input type="checkbox" id="convertcurrency" name="convertcurrency" onChange="setConvertCurrency()"
<?php if ($settings['convert_currency'])
echo 'checked'; ?>>
<?php
if ($settings['convert_currency']) echo ' checked';
if ($apiKey == "") echo ' disabled';
?>>
<label for="convertcurrency"><?= translate('convert_prices', $i18n) ?></label>
</div>
</div>
Expand Down

0 comments on commit 21412cf

Please sign in to comment.