From 80eaa643c96029ec4540b7f47ec873bb725b9957 Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Tue, 10 Oct 2023 15:27:42 +0200 Subject: [PATCH] TACAN and radio can now be set on carriers --- client/src/panels/unitcontrolpanel.ts | 4 ++-- client/views/other/dialogs.ejs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/panels/unitcontrolpanel.ts b/client/src/panels/unitcontrolpanel.ts index c6f406fb..5960a3e7 100644 --- a/client/src/panels/unitcontrolpanel.ts +++ b/client/src/panels/unitcontrolpanel.ts @@ -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 diff --git a/client/views/other/dialogs.ejs b/client/views/other/dialogs.ejs index cb4a8b0c..af3974a0 100644 --- a/client/views/other/dialogs.ejs +++ b/client/views/other/dialogs.ejs @@ -104,14 +104,14 @@
-
- +