chore: minor stock naming improvements

This commit is contained in:
2025-03-09 16:48:22 +01:00
parent b9b1e438b9
commit f4f6512969
3 changed files with 3 additions and 4 deletions
@@ -242,7 +242,7 @@ export default defineComponent({
saveStockDataToStorage() {
if (this.store.stockList.length == 0) return;
const defaultName = `${this.store.stockList[0].vehicleRef.type} ${(this.store.totalWeight / 1000).toFixed(1)}t; ${this.store.totalLength}m; vmax ${this.store.maxStockSpeed}`;
const defaultName = this.fileUtils.getCurrentStockFileName();
const entryName = prompt(this.$t('stocklist.prompt-bookmark'), defaultName);
if (!entryName) return;