mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 05:18:10 +00:00
chore: minor stock generator improvements; code cleanup
This commit is contained in:
@@ -110,6 +110,7 @@ export default defineComponent({
|
||||
|
||||
delete this.store.storageStockData[stockName];
|
||||
this.store.chosenStorageStockName = '';
|
||||
this.store.chosenStorageStockString = '';
|
||||
|
||||
try {
|
||||
localStorage.setItem('savedStockData', JSON.stringify(this.store.storageStockData));
|
||||
@@ -122,6 +123,8 @@ export default defineComponent({
|
||||
try {
|
||||
this.loadStockFromString(this.store.storageStockData[stockName].stockString);
|
||||
this.store.chosenStorageStockName = stockName;
|
||||
this.store.chosenStorageStockString = this.store.storageStockData[stockName].stockString;
|
||||
|
||||
this.$router.push('/');
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
||||
Reference in New Issue
Block a user