Skip to content

Commit

Permalink
Bump version, move version rendering to top level component
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-yagodin committed Jun 22, 2021
1 parent fa3de7d commit 3ca83a0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
28 changes: 17 additions & 11 deletions R7.Enrollment.Dnn/Views/Ratings/RatingSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,27 @@ class RatingSearch extends React.Component {
}

render () {
return (
<div>
<RatingSearchDbInfo campaigns={this.props.campaigns} />
{this.renderForm ()}
<hr />
<p className="text-muted small"><a href="https://github.com/volgau/R7.Enrollment" target="_blank">R7.Enrollment v0.2</a></p>
</div>
);
}

renderForm () {
if (this.props.campaigns.length > 0) {
return (
<div>
<RatingSearchDbInfo campaigns={this.props.campaigns} />
<RatingSearchForm
moduleId={this.props.moduleId}
service={this.props.service}
noSnils={this.state.noSnils}
onNoSnilsChange={this.handleNoSnilsChange} />
</div>
<RatingSearchForm
moduleId={this.props.moduleId}
service={this.props.service}
noSnils={this.state.noSnils}
onNoSnilsChange={this.handleNoSnilsChange} />
);
}
return (
<RatingSearchDbInfo campaigns={this.props.campaigns} />
);
return null;
}
}

Expand Down
3 changes: 1 addition & 2 deletions R7.Enrollment.Dnn/Views/Ratings/RatingSearchForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ export default class RatingSearchForm extends React.Component {
<div>
{this.renderForm ()}
<RatingSearchResults requestDone={this.state.requestDone} lists={this.state.lists} isError={this.state.isError} />
<hr />
<p className="text-muted small"><a href="https://github.com/volgau/R7.Enrollment" target="_blank">R7.Enrollment v0.1</a></p>

</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions R7.Enrollment/Properties/SolutionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
[assembly: AssemblyProduct ("R7.Enrollment")]
[assembly: AssemblyCopyright ("Roman M. Yagodin")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyVersion ("0.1.0")]
[assembly: AssemblyInformationalVersion ("0.1.0")]
[assembly: AssemblyVersion ("0.2.0")]
[assembly: AssemblyInformationalVersion ("0.2.0")]

0 comments on commit 3ca83a0

Please sign in to comment.