mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Added JSON validation for imports.
This commit is contained in:
@@ -25,6 +25,10 @@ export class UnitDataFileExport extends UnitDataFile {
|
||||
* Show the form to start the export journey
|
||||
*/
|
||||
showForm(units: Unit[]) {
|
||||
this.dialog.getElement().querySelectorAll("[data-on-error]").forEach((el:Element) => {
|
||||
el.classList.toggle("hide", el.getAttribute("data-on-error") === "show");
|
||||
});
|
||||
|
||||
const data: any = {};
|
||||
const unitCanBeExported = (unit: Unit) => !["Aircraft", "Helicopter"].includes(unit.getCategory());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user