Skip to content

Commit

Permalink
fix: update responses now properly scroll the console
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Bassett <[email protected]>
  • Loading branch information
cadriel committed Feb 20, 2021
1 parent d695ca9 commit 17e70ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/dialogs/dialogUpdateStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
</v-card-title>
<v-card-text>
<console-widget
v-if="updateResponses"
:items="updateResponses"
:items="responses"
key-field="id"
:height="250"
readonly
Expand Down Expand Up @@ -72,8 +71,8 @@ export default class DialogUpdateStatus extends Mixins(UtilsMixin) {
}
}
get updateResponses () {
return this.$store.state.version.responses
get responses () {
return this.$store.getters['version/getResponses']
}
close () {
Expand Down
4 changes: 4 additions & 0 deletions src/store/version/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ export const getters: GetterTree<VersionState, RootState> = {

const o = state.components[component] as HashVersion
return (o.current_hash !== o.remote_hash)
},

getResponses: (state) => {
return [...state.responses]
}
}

0 comments on commit 17e70ce

Please sign in to comment.