Merge pull request #681 from ryanblenis/plugin-admin

Fix available plugin actions
This commit is contained in:
Ylian Saint-Hilaire 2019-11-25 23:44:37 -08:00 committed by GitHub
commit 8e702a49b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>';
}
}