Skip to content

Commit 8bf871b

Browse files
committed
cleanup
1 parent 50c9d79 commit 8bf871b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@
6868
</template>
6969

7070
<script lang="ts">
71-
import {defineComponent, watch} from 'vue'
72-
import {Profile, GENERIC_PROFILE_LOAD_ERROR, ListProfilePendingResult, ListProfileSuccessResult, ListProfileFailureResult} from '../../model'
71+
import { defineComponent } from 'vue'
72+
import { Profile, GENERIC_PROFILE_LOAD_ERROR, ListProfilePendingResult, ListProfileSuccessResult, ListProfileFailureResult } from '../../model'
7373
7474
export default defineComponent({
7575
name: 'ProfileSelection',
7676
props: {
77-
app: {type: String, default: ''}
77+
app: { type: String, default: '' }
7878
},
7979
data() {
8080
return {
@@ -93,8 +93,11 @@ export default defineComponent({
9393
9494
if (profileResult instanceof ListProfileSuccessResult) {
9595
this.availableProfiles = profileResult.profiles
96-
} else {
96+
} else if (profileResult instanceof ListProfileFailureResult) {
9797
this.errorMessage = GENERIC_PROFILE_LOAD_ERROR
98+
} else {
99+
// should not be this path
100+
this.errorMessage = 'Unexpected error happened while loading Q webview page'
98101
}
99102
100103
return false

0 commit comments

Comments
 (0)