add info to plugincards

This commit is contained in:
Zack Rauen 2017-10-31 04:34:58 -04:00
parent bcd67052b8
commit 5119095169
1 changed files with 1 additions and 18 deletions

View File

@ -2370,7 +2370,7 @@ class V2C_PluginCard extends BDV2.reactComponent {
return BDV2.react.createElement(
"li",
null,
{pluginName: name, version: version},
BDV2.react.createElement(
"div",
{ className: "bda-left" },
@ -2416,24 +2416,7 @@ class V2C_PluginCard extends BDV2.reactComponent {
self.setState({
'checked': !self.state.checked
});
// if checked enableplugin(plugin)
// else disableplugin(plugin)
pluginModule.togglePlugin(self.props.plugin.getName());
// pluginCookie[self.props.plugin.getName()] = !self.state.checked;
// if (!self.state.checked) {
// try { self.props.plugin.start(); }
// catch (err) {
// pluginCookie[name] = false;
// utils.err("Plugin " + self.props.plugin.getName() + " could not be started.", err);
// }
// } else {
// try { self.props.plugin.stop(); }
// catch (err) { utils.err("Plugin " + self.props.plugin.getName() + " could not be stopped.", err); }
// }
// $.cookie("bd-plugins", JSON.stringify(pluginCookie), {
// expires: 365,
// path: '/'
// });
}
showSettings() {