Skip to content

Commit

Permalink
Merge branch 'master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
mtnstar committed Jul 19, 2023
2 parents 40af068 + 28466c2 commit c0c62b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions frontend/app/components/team/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ export default class Index extends Component {
@service loading;

@tracked model = this.args.model;
@tracked q = this.args.q;

constructor() {
super(...arguments);
}
Expand Down
4 changes: 4 additions & 0 deletions frontend/app/routes/teams/show.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export default class TeamsShowRoute extends BaseRoute {
templateName = "teams/index";
controllerName = "teams/index";

beforeModel() {
this.navService.clearSearch();
}

afterModel(_resolvedModel, transition) {
this.navService.setSelectedTeamById(transition.to.params.team_id);
this.navService.selectedFolder = null;
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/templates/teams/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</div>
</div>
{{else}}
{{#if this.q}}
<SearchResultComponent @q={{this.q}}/>
{{#if this.navService.searchQuery}}
<SearchResultComponent @q={{this.navService.searchQuery}}/>
{{/if}}
{{#if @model}}
{{#each this.model as |team|}}
Expand Down

0 comments on commit c0c62b1

Please sign in to comment.