mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
chore: minor stock generator improvements; code cleanup
This commit is contained in:
+14
@@ -23,6 +23,20 @@ export default defineComponent({
|
||||
this.store.setupAPIData();
|
||||
},
|
||||
|
||||
computed: {
|
||||
currentStockString() {
|
||||
return this.store.stockString;
|
||||
},
|
||||
},
|
||||
|
||||
watch: {
|
||||
currentStockString(val: string) {
|
||||
if (val != this.store.chosenStorageStockString) {
|
||||
this.store.chosenStorageStockName = '';
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
loadStockDataFromStorage() {
|
||||
const savedData = localStorage.getItem('savedStockData');
|
||||
|
||||
Reference in New Issue
Block a user