mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Show/Hide Plugins tab in device view only if plugins exists that use that functionality
This commit is contained in:
parent
493917c08c
commit
6fa812d887
2 changed files with 2 additions and 1 deletions
|
@ -100,6 +100,7 @@ module.exports.pluginHandler = function (parent) {
|
|||
QA('p19headers', '<span ' + defaultOn + ' onclick="return pluginHandler.callPluginPage(\\''+d.tabId+'\\', this);">'+d.tabTitle+'</span>');
|
||||
QA('p19pages', '<div id="' + d.tabId + '"></div>');
|
||||
}
|
||||
QV('MainDevPlugins', true);
|
||||
};
|
||||
obj.callPluginPage = function(id, el) {
|
||||
var pages = Q('p19pages').querySelectorAll("#p19pages>div");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue