chore: minor stock generator improvements; code cleanup

This commit is contained in:
2025-03-09 16:20:58 +01:00
parent 862aebb158
commit 1eb5f3de9e
6 changed files with 56 additions and 47 deletions
+14
View File
@@ -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');