Default to JSON, don't make it an option for now.

This commit is contained in:
Mario Zechner 2023-06-18 14:42:47 +02:00
parent 898fa44ff1
commit c578a7e5bc
2 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ class Settings extends Model {
STORE_KEYS.forEach((store) => {
this[store] = stores[store].defaultChecked;
});
this.jsonData = false;
this.jsonData = true;
let settings = localStorage.getItem("settings");
if (settings) {
@ -18,6 +18,7 @@ class Settings extends Model {
this[prop] = settings[prop];
}
}
this.jsonData = true;
}
save() {

View File

@ -37,8 +37,8 @@ class SettingsView extends View {
<option value="lines">Linien</option>
</select>
</label>
<custom-checkbox x-id="useJson" x-change x-state checked label="Daten als JSON downloaden">
</custom-checkbox>
<!--<custom-checkbox x-id="useJson" x-change x-state checked label="Daten als JSON downloaden">
</custom-checkbox>-->
</div>
`;
this.setupEventHandlers();