Remove all direct localStorage calls.

Also: make instance changes active instantly without needing a reload.
This commit is contained in:
FireMasterK
2021-07-04 23:56:02 +05:30
parent ffec9d992a
commit 7a77534098
9 changed files with 30 additions and 33 deletions

View File

@@ -19,8 +19,6 @@
</template>
<script>
import Constants from "@/Constants.js";
export default {
props: {
searchText: String,
@@ -52,7 +50,7 @@ export default {
}
},
async refreshSuggestions() {
this.searchSuggestions = await this.fetchJson(Constants.BASE_URL + "/suggestions", {
this.searchSuggestions = await this.fetchJson(this.apiUrl() + "/suggestions", {
query: this.searchText,
});
this.searchSuggestions.unshift(this.searchText);