Skip to content

Commit

Permalink
add logger to back logic (#201)
Browse files Browse the repository at this point in the history
* add logger to back logic

* Update package.json
  • Loading branch information
slavik-lvovsky authored Mar 25, 2020
1 parent db6165d commit 697a804
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "Apache 2.0",
"description": "Provide rich user experience for Yeoman generators using VSCode extension or the browser",
"repository": "https://github.com/SAP/yeoman-ui",
"version": "0.0.62",
"version": "0.0.63",
"engines": {
"vscode": "^1.39.2"
},
Expand Down
17 changes: 11 additions & 6 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,17 @@ export default {
(this.currentPrompt && this.currentPrompt.status === PENDING && !this.isDone);
},
back() {
this.isReplaying = true;
const answers = this.currentPrompt.answers;
if (this.promptIndex > 1) {
this.rpc.invoke("back", [answers]);
} else {
this.reload();
try {
this.isReplaying = true;
const answers = this.currentPrompt.answers;
if (this.promptIndex > 1) {
this.rpc.invoke("back", [answers]);
} else {
this.reload();
}
} catch (error) {
this.rpc.invoke("logError", [error]);
this.reject(error);
}
},
next() {
Expand Down

0 comments on commit 697a804

Please sign in to comment.