contextmenu refactoring

This commit is contained in:
Peter Papp
2021-08-20 09:54:00 +02:00
parent c57a244ae1
commit 99e9c0086e
6 changed files with 300 additions and 357 deletions

View File

@@ -331,6 +331,14 @@ const FunctionHelpers = {
Vue.prototype.$closePopup = function () {
events.$emit('popup:close')
}
Vue.prototype.$openInDetailPanel = function (entry) {
// Dispatch load file info detail
this.$store.commit('ADD_ITEM_TO_CLIPBOARD', entry)
// Show panel if is not open
this.$store.dispatch('fileInfoToggle', true)
}
}
}