remove current SupportedSyndicate in label
All checks were successful
Build / build (22) (pull_request) Successful in 35s
Build / build (18) (pull_request) Successful in 56s
Build / build (20) (pull_request) Successful in 1m12s

This commit is contained in:
AMelonInsideLemon 2025-02-09 00:48:02 +01:00
parent 4ba8b2a8c6
commit de2101097c
4 changed files with 9 additions and 10 deletions

View File

@ -465,12 +465,14 @@
<div class="card-body">
<p><button class="btn btn-primary" onclick="doUnlockAllFocusSchools();" data-loc="cheats_unlockAllFocusSchools"></button></p>
<button class="btn btn-primary" onclick="doHelminthUnlockAll();" data-loc="cheats_helminthUnlockAll"></button>
<form class="input-group mt-2" onsubmit="doChangeSupportedSyndicate();return false;">
<form class="mt-2" onsubmit="doChangeSupportedSyndicate(); return false;">
<label class="form-label" for="changeSyndicate" data-loc="cheats_changeSupportedSyndicate"></label>
<select class="form-control w-50" id="changeSyndicate">
<option value="" data-loc="cheats_none"></option>
</select>
<button class="btn btn-primary" type="submit" data-loc="cheats_changeButton"></button>
<div class="input-group">
<select class="form-control" id="changeSyndicate">
<option value="" data-loc="cheats_none"></option>
</select>
<button class="btn btn-primary" type="submit" data-loc="cheats_changeButton"></button>
</div>
</form>
</div>
</div>

View File

@ -534,9 +534,6 @@ function updateInventory() {
}
}
document.querySelector("label[for='changeSyndicate']").innerText = loc("cheats_changeSupportedSyndicate")
.split("|SYNDICATE|")
.join(itemMap[data.SupportedSyndicate]?.name || loc("cheats_none"));
document.getElementById("changeSyndicate").value = data.SupportedSyndicate ?? "";
});
});

View File

@ -106,7 +106,7 @@ dict = {
cheats_account: `Account`,
cheats_unlockAllFocusSchools: `Unlock All Focus Schools`,
cheats_helminthUnlockAll: `Fully Level Up Helminth`,
cheats_changeSupportedSyndicate: `Change supported syndicate. Current: |SYNDICATE|`,
cheats_changeSupportedSyndicate: `Supported syndicate`,
cheats_changeButton: `Change`,
cheats_none: `None`,
import_importNote: `You can provide a full or partial inventory response (client respresentation) here. All fields that are supported by the importer <b>will be overwritten</b> in your account.`,

View File

@ -107,7 +107,7 @@ dict = {
cheats_account: `Аккаунт`,
cheats_unlockAllFocusSchools: `Разблокировать все школы фокуса`,
cheats_helminthUnlockAll: `Полностью улучшить Гельминта`,
cheats_changeSupportedSyndicate: `Изменить поддерживаемый синдикат. Текущий: |SYNDICATE|`,
cheats_changeSupportedSyndicate: `Поддерживаемый синдикат`,
cheats_changeButton: `Изменить`,
cheats_none: `Отсутствует`,
import_importNote: `Вы можете загрузить полный или частичный ответ инвентаря (клиентское представление) здесь. Все поддерживаемые поля <b>будут перезаписаны</b> в вашем аккаунте.`,