mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-20 15:35:49 +02:00
Default to JSON, don't make it an option for now.
This commit is contained in:
parent
898fa44ff1
commit
c578a7e5bc
|
@ -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() {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user