solved issues bulk review part.1

This commit is contained in:
Milos Holba
2020-12-13 16:33:28 +01:00
parent 874b4bb768
commit 89ea50b893
24 changed files with 359 additions and 172 deletions

View File

@@ -84,11 +84,13 @@
<ToolbarButton
source="preview-sorting"
class="preview-sorting"
:action="$t('actions.sorting_view')"
:class="{ active: sortingAndPreview }"
@click.native=" sortingAndPreview = !sortingAndPreview"
/>
<ToolbarButton
:action="$t('actions.info_panel')"
:class="{ active: fileInfoVisible }"
@click.native="$store.dispatch('fileInfoToggle')"
source="info"
@@ -196,11 +198,11 @@ export default {
watch: {
sortingAndPreview () {
if(this.sortingAndPreview) {
events.$emit('sortingAndPreview-open')
events.$emit('sortingAndPreview', true)
}
if(!this.sortingAndPreview) {
events.$emit('sortingAndPreview-close')
events.$emit('sortingAndPreview', false)
}
}
},
@@ -256,6 +258,11 @@ export default {
}
},
},
mounted () {
events.$on('sortingAndPreview', (state) => {
this.sortingAndPreview = state
})
}
};
</script>