Update PluginRepo.plugin.js
This commit is contained in:
parent
9827769aae
commit
a2a7e5d7af
|
@ -2,7 +2,7 @@
|
||||||
* @name PluginRepo
|
* @name PluginRepo
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 2.3.4
|
* @version 2.3.5
|
||||||
* @description Allows you to download all Plugins from BD's Website within Discord
|
* @description Allows you to download all Plugins from BD's Website within Discord
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -17,7 +17,7 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "PluginRepo",
|
"name": "PluginRepo",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "2.3.4",
|
"version": "2.3.5",
|
||||||
"description": "Allows you to download all Plugins from BD's Website within Discord"
|
"description": "Allows you to download all Plugins from BD's Website within Discord"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -151,7 +151,6 @@ module.exports = (_ => {
|
||||||
return plugins;
|
return plugins;
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
let automaticLoading = BDFDB.BDUtils.getSettings(BDFDB.BDUtils.settingsIds.automaticLoading);
|
|
||||||
if (!this.props.tab) this.props.tab = "Plugins";
|
if (!this.props.tab) this.props.tab = "Plugins";
|
||||||
|
|
||||||
this.props.entries = (!loading.is && grabbedPlugins.length ? this.filterPlugins() : []).map(plugin => BDFDB.ReactUtils.createElement(RepoCardComponent, {
|
this.props.entries = (!loading.is && grabbedPlugins.length ? this.filterPlugins() : []).map(plugin => BDFDB.ReactUtils.createElement(RepoCardComponent, {
|
||||||
|
@ -213,21 +212,12 @@ module.exports = (_ => {
|
||||||
plugin: _this,
|
plugin: _this,
|
||||||
keys: ["general", key],
|
keys: ["general", key],
|
||||||
label: _this.defaults.general[key].description,
|
label: _this.defaults.general[key].description,
|
||||||
note: _this.defaults.general[key].autoload && !automaticLoading && "Automatic Loading has to be enabled",
|
|
||||||
disabled: _this.defaults.general[key].autoload && !automaticLoading,
|
|
||||||
value: _this.settings.general[key],
|
value: _this.settings.general[key],
|
||||||
onChange: value => {
|
onChange: value => {
|
||||||
_this.settings.general[key] = value;
|
_this.settings.general[key] = value;
|
||||||
BDFDB.ReactUtils.forceUpdate(this);
|
BDFDB.ReactUtils.forceUpdate(this);
|
||||||
}
|
}
|
||||||
})),
|
}))
|
||||||
!automaticLoading && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
|
|
||||||
className: BDFDB.disCN.marginbottom20,
|
|
||||||
children: BDFDB.ReactUtils.createElement("div", {
|
|
||||||
className: BDFDB.disCNS.settingsrowtitle + BDFDB.disCNS.settingsrowtitledefault + BDFDB.disCN.cursordefault,
|
|
||||||
children: "To experience Plugin Repo in the best way. I would recommend you to enable BD's intern Automatic-Loading Feature, that way all downloaded Files are loaded into Discord without the need to reload."
|
|
||||||
})
|
|
||||||
})
|
|
||||||
].flat(10).filter(n => n)
|
].flat(10).filter(n => n)
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue