From 2d4436cda5be69a5386f3551b3a3eac67187e846 Mon Sep 17 00:00:00 2001 From: Son NK Date: Wed, 4 Dec 2019 23:38:07 +0000 Subject: [PATCH] show loading when fetching options --- src/popup/App.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/popup/App.vue b/src/popup/App.vue index ca9b8c3..3962677 100644 --- a/src/popup/App.vue +++ b/src/popup/App.vue @@ -261,6 +261,7 @@ export default { }, async getAliasOptions() { let that = this; + that.loading = true; let res = await fetch(API + "/alias/options?hostname=" + that.hostName, { method: "GET", @@ -271,7 +272,6 @@ export default { }); let json = await res.json(); - console.log(json); if (json.recommendation !== undefined) { that.hasRecommendation = true; @@ -289,6 +289,8 @@ export default { that.existing = json.existing; that.optionsReady = true; + + that.loading = false; }, async createCustomAlias() {