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 15, 2023
1 parent 0c7a891 commit 999c01b
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
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 999c01b

Please sign in to comment.