mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +09:00
Rename enabled to load_plugin
Rename the config and status indicating whether to load a plugin or not from "Enabled" to "Load Plugin". The latter better describes what it does, and unlike the former doesn't imply plugins can be enabled or disabled on the fly.
This commit is contained in:
1 parent
19259b2226
commit
63f76ce87a
7 files changed
+19
-19
No files matched your search
@@ -278,8 +278,8 @@ app.get("/api/plugins", (req, res) => {
|
||||
let plugins = [];
|
||||
for (let pluginInfo of pluginInfos) {
|
||||
let name = pluginInfo.name;
|
||||
let enabled = masterPlugins.has(name) && masterConfig.group(name).get("enabled");
|
||||
plugins.push({ name, version: pluginInfo.version, enabled });
|
||||
let loaded = masterPlugins.has(name);
|
||||
plugins.push({ name, version: pluginInfo.version, loaded });
|
||||
}
|
||||
res.send(plugins);
|
||||
});
|
||||
@@ -1699,7 +1699,7 @@ ${err.stack}`
|
||||
async function loadPlugins() {
|
||||
let plugins = new Map();
|
||||
for (let pluginInfo of pluginInfos) {
|
||||
if (!masterConfig.group(pluginInfo.name).get("enabled")) {
|
||||
if (!masterConfig.group(pluginInfo.name).get("load_plugin")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user