Commit f7a95cdd authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

FileManager: open contextmenu when clicking in background

parent 8327ad40
......@@ -33,6 +33,7 @@
dropok: dropok,
}"
v-drop:copy.dropok="dropFilter"
@contextmenu="openMenu"
>
<item
v-for="(i, d) in sortedItems"
......
......@@ -5,6 +5,7 @@
'dropok': dropok,
}"
v-drop:copy.dropok="dropFilter"
@contextmenu="openMenu"
>
<div class="items">
<item
......
......@@ -17,6 +17,10 @@ define([
dropok: false,
};},
methods: {
openMenu: function(ev) {
if (ev.defaultPrevented) return;
this.$dispatch("openMenu", {}, ev);
},
sortMod: function(col) {
var so = this.$root.pref("sortOrder");
var plop = function(n, m) {
......
......@@ -95,9 +95,9 @@ define([
var ext = {};
// add selected
var sel = this.selectedItems;
if (sel.length && sel.filter(function (it) {
if (sel.length && (!info.data || sel.filter(function (it) {
return it.name == info.data.name;
}).length) {
}).length)) {
ext.items = sel;
} else if(info.data) {
ext.items = [info.data];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment