Fix unavailable plugin actions

This commit is contained in:
Ryan Blenis 2019-11-26 02:19:42 -05:00
parent 3db0e5f1a3
commit 02aa261f38

View File

@ -9563,7 +9563,7 @@
p.actions = '<select onchange="return pluginAction(this,\'' + p._id + '\');"><option value=""> --</option>';
var entries = Object.entries(statusAvailability[p.status]);
for (var k in entries) {
if (cant_action.indexOf(k) === -1) {
if (cant_action.indexOf(entries[k][0]) === -1) {
p.actions += '<option value="' + entries[k][0] + '">' + entries[k][1] + '</option>';
}
}