Skip to content

Commit

Permalink
[previews] sync the selected version in the task panel and the previe…
Browse files Browse the repository at this point in the history
…w player in fullscreen
  • Loading branch information
NicoPennec committed Nov 19, 2024
1 parent 7b211b2 commit 638632b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/previews/PreviewPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@
is-reversed
is-preview
thin
:value="currentPreview?.id"
@input="changeCurrentPreviewFile"
/>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/sides/TaskInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
:options="previewOptions"
is-preview
thin
:value="previewOptions[currentPreviewIndex]?.value"
@input="onPreviewChanged"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ const mutations = {
comments.forEach(comment => {
comment.person = personStore.state.personMap.get(comment.person_id)
})
state.taskComments[taskId] = sortComments(comments)
state.taskComments[taskId] = sortComments([...comments])
Vue.set(
state.taskPreviews,
taskId,
Expand Down

0 comments on commit 638632b

Please sign in to comment.