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;
@@ -10,9 +10,8 @@
{{ store.chosenStorageStockName.slice(0, 40) }}
{{ store.chosenStorageStockName.length > 41 ? '...' : '' }}
</span>
|
</b>
<span v-if="store.chosenStorageStockName && chosenRealComposition"> | </span>
<b class="real-stock-info" v-if="chosenRealComposition">
<span class="text--accent">
<img :src="getIconURL(chosenRealComposition.type)" :alt="chosenRealComposition.type" />