show loading when fetching options

This commit is contained in:
Son NK
2019-12-04 23:38:07 +00:00
parent a890951066
commit 2d4436cda5
+3 -1
View File
@@ -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() {