Skip to content

Commit dad76f1

Browse files
Merge main into feature/q-lsp
2 parents 25ed88a + 08cde9e commit dad76f1

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
@@ -87,6 +87,7 @@ export default defineComponent({
8787
},
8888
computed: {
8989
isWaitingResponse() {
90+
this.errorMessage = ''
9091
const profileResult = this.$store.state.listProfilesResult
9192
if (profileResult instanceof ListProfilePendingResult) {
9293
return true
@@ -96,6 +97,7 @@ export default defineComponent({
9697
this.availableProfiles = profileResult.profiles
9798
} else if (profileResult instanceof ListProfileFailureResult) {
9899
this.errorMessage = GENERIC_PROFILE_LOAD_ERROR
100+
this.isRefreshing = false
99101
} else {
100102
// should not be this path
101103
this.errorMessage = "Unexpected error happenede while loading Q Webview page"
@@ -125,7 +127,7 @@ export default defineComponent({
125127
},
126128
handleRetryClick() {
127129
this.isRefreshing = true
128-
window.ideApi.postMessage({command: 'prepareUi'})
130+
window.ideApi.postMessage({command: 'listProfiles'})
129131
},
130132
handleSignoutClick() {
131133
window.ideApi.postMessage({command: 'signout'})

0 commit comments

Comments
 (0)