note to self: don't code during meetings

This commit is contained in:
Zack Rauen 2020-03-30 14:22:47 -04:00
parent d376ebda3f
commit dee55c7ef6
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -167,7 +167,7 @@ export default class V2C_PluginCard extends BDV2.reactComponent {
}
onChange() {
this.props.toggle && this.props.toggle(this.props.addon.name);
this.props.toggle && this.props.toggle(this.props.addon.plugin ? this.props.addon.plugin.getName() || this.props.addon.name : this.props.addon.name);
this.setState({checked: !this.state.checked});
}
@ -177,7 +177,7 @@ export default class V2C_PluginCard extends BDV2.reactComponent {
render() {
if (this.state.settings) return this.settingsComponent;
const name = this.getString(this.props.addon.plugin ? this.props.addon.plugin.getName() : this.props.addon.name);
const name = this.getString(this.props.addon.plugin ? this.props.addon.plugin.getName() || this.props.addon.name : this.props.addon.name);
const author = this.getString(this.props.addon.plugin ? this.props.addon.plugin.getAuthor() : this.props.addon.author);
const description = this.getString(this.props.addon.plugin ? this.props.addon.plugin.getDescription() : this.props.addon.description);
const version = this.getString(this.props.addon.plugin ? this.props.addon.plugin.getVersion() : this.props.addon.version);