Merge pull request #446 from Pax1601/small-issues

TACAN and radio can now be set on carriers
This commit is contained in:
Pax1601 2023-10-10 15:49:15 +02:00 committed by GitHub
commit aa1550ca01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -308,8 +308,8 @@ export class UnitControlPanel extends Panel {
this.#advancedSettingsDialog.toggleAttribute("data-show-tasking", tanker || AWACS);
this.#advancedSettingsDialog.toggleAttribute("data-show-tanker", tanker);
this.#advancedSettingsDialog.toggleAttribute("data-show-AWACS", AWACS);
this.#advancedSettingsDialog.toggleAttribute("data-show-TACAN", tanker);
this.#advancedSettingsDialog.toggleAttribute("data-show-radio", tanker || AWACS);
this.#advancedSettingsDialog.toggleAttribute("data-show-TACAN", tanker || ["Aircraft Carrier", "Super Aircraft Carrier"].includes(units[0].getType()));
this.#advancedSettingsDialog.toggleAttribute("data-show-radio", tanker || AWACS || ["Aircraft Carrier", "Super Aircraft Carrier"].includes(units[0].getType()));
/* Set common properties */
// Name

View File

@ -104,14 +104,14 @@
<hr>
</div>
<div id="TACAN-checkbox" class="ol-checkbox">
<label title="Turn ON the A/A TACAN">
<label title="Turn ON the TACAN">
<input type="checkbox" />
Use A/A TACAN
Activate TACAN
</label>
</div>
<div class="ol-group">
<label>A/A TACAN: </label>
<label>TACAN: </label>
<div class="ol-group">
<div id="TACAN-channel" class="ol-text-input">