mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 06:35:54 -05:00
Fix unavailable plugin actions
This commit is contained in:
parent
3db0e5f1a3
commit
02aa261f38
@ -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>';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user