This commit is contained in:
David Ralph
2020-12-02 12:23:55 +00:00
parent 89b4d154ad
commit fc570089c2
10 changed files with 67 additions and 70 deletions

View File

@@ -100,9 +100,9 @@ export default class Marketplace extends React.PureComponent {
default: break;
}
toast(this.props.toastLanguage[type + 'ed']);
let button = this.buttons.install;
if (type === 'install') button = this.buttons.uninstall;
this.setState({ button: button });
this.setState({
button: (type === 'install') ? this.buttons.uninstall : this.buttons.install
});
}
componentDidMount() {
@@ -132,7 +132,7 @@ export default class Marketplace extends React.PureComponent {
);
}
if (this.state.done === false) return returnMessage(<h1>{this.props.updateLanguage.loading}</h1>)
if (this.state.done === false) return returnMessage(<h1>{this.props.updateLanguage.loading}</h1>);
return (
<React.Fragment>