refactor: updated order message component

This commit is contained in:
2025-09-27 22:16:26 +02:00
parent 73c397a1bc
commit 5a2be7b25e
7 changed files with 201 additions and 257 deletions
+2 -4
View File
@@ -56,7 +56,7 @@ export default defineComponent({
loadSettings() {
document.title = `GeneraTOR ${this.appVersion}`;
this.store.orderDarkMode = this.getOrderSetting('dark-mode') === 'true';
this.store.orderDarkMode = StorageManager.getBooleanValue('dark-mode');
},
handleQueries() {
@@ -65,7 +65,7 @@ export default defineComponent({
const id = query.get('sceneryId');
if (id != null) {
this.store.orderMode = 'OrderTrainPicker';
this.store.panelMode = 'OrderTrainPicker';
}
},
@@ -93,8 +93,6 @@ export default defineComponent({
StorageManager.setStringValue(STORAGE_VERSION_KEY, this.appVersion);
},
loadLang() {
const storageLang = StorageManager.getStringValue('lang');