Skip to content

Commit a797ea4

Browse files
committed
fix retry flow broke by #5552
1 parent 1a57043 commit a797ea4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/core/webview/src/q-ui/components/profileSelection.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export default defineComponent({
8686
},
8787
computed: {
8888
isWaitingResponse() {
89+
this.errorMessage = ''
8990
const profileResult = this.$store.state.listProfilesResult
9091
if (profileResult instanceof ListProfilePendingResult) {
9192
return true
@@ -95,6 +96,7 @@ export default defineComponent({
9596
this.availableProfiles = profileResult.profiles
9697
} else if (profileResult instanceof ListProfileFailureResult) {
9798
this.errorMessage = GENERIC_PROFILE_LOAD_ERROR
99+
this.isRefreshing = false
98100
} else {
99101
// should not be this path
100102
this.errorMessage = "Unexpected error happenede while loading Q Webview page"
@@ -124,7 +126,7 @@ export default defineComponent({
124126
},
125127
handleRetryClick() {
126128
this.isRefreshing = true
127-
window.ideApi.postMessage({command: 'prepareUi'})
129+
window.ideApi.postMessage({command: 'listProfiles'})
128130
},
129131
handleSignoutClick() {
130132
window.ideApi.postMessage({command: 'signout'})

0 commit comments

Comments
 (0)