Skip to content

Commit

Permalink
👌 : fix await usage
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit authored and cdubuisson committed Apr 9, 2020
1 parent 410503b commit 250441e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/client/app/pages/modules/import/manual-import.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
let module = {
name: this.moduleName,
};
module = createModule(module);
module = await createModule(module);
this.$router.push({ name: 'module', params: { id: module.id } });
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/main/client/app/pages/modules/module.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
return typeof field !== 'undefined' && field !== null && field.trim() !== '';
},
async save() {
updateModule(this.module)
await updateModule(this.module)
.then(() => {
this.$bvToast.toast('Module saved', {
noCloseButton: true,
Expand Down
3 changes: 1 addition & 2 deletions src/main/client/app/pages/modules/readme.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
}),
async created() {
const readme = await getModuleReadme(this.moduleId);
this.content = readme;
this.content = await getModuleReadme(this.moduleId);
this.loaded = true;
},
};
Expand Down
4 changes: 2 additions & 2 deletions src/main/client/app/pages/stacks/stack-creation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@
},
methods: {
async checkStackNameValidation() {
checkStackNameValidation() {
return this.stackNameValid;
},
async checkStackVariablesValidation() {
checkStackVariablesValidation() {
return this.stack.variables.every((variable) => variable.isValid);
},
stackVariablesMgmt() {
Expand Down

0 comments on commit 250441e

Please sign in to comment.