Skip to content

Commit

Permalink
Reset selection state in route change
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Jun 19, 2023
1 parent d6e8b7d commit aad08d0
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions js/photos-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-main.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-public.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/mixins/FilesSelectionMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ export default {
}
},

watch: {
$route() {
this.resetSelection()
},
},

methods: {
onFileSelectToggle({ id, value }) {
this.$set(this.selection, id, value)
Expand Down

0 comments on commit aad08d0

Please sign in to comment.