Skip to content

Commit

Permalink
fix: Changing tab order and routes (#3660)
Browse files Browse the repository at this point in the history
  • Loading branch information
kushthedude authored and iamareebjamal committed Nov 25, 2019
1 parent 48d0d9e commit e56027b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/routes/admin/events/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import Route from '@ember/routing/route';
export default Route.extend({
beforeModel() {
this._super(...arguments);
this.transitionTo('admin.events.list', 'all');
this.transitionTo('admin.events.list', 'live');
}
});
6 changes: 3 additions & 3 deletions app/templates/admin/events.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
<div class="row">
<div class="sixteen wide column">
{{#tabbed-navigation isNonPointing=true}}
{{#link-to 'admin.events.list' 'all' class='item'}}
{{t 'All Events'}}
{{/link-to}}
{{#link-to 'admin.events.list' 'live' class='item'}}
{{t 'All Live'}}
{{/link-to}}
Expand All @@ -14,6 +11,9 @@
{{#link-to 'admin.events.list' 'past' class='item'}}
{{t 'All Past'}}
{{/link-to}}
{{#link-to 'admin.events.list' 'all' class='item'}}
{{t 'All Events'}}
{{/link-to}}
{{#link-to 'admin.events.list' 'deleted' class='item'}}
{{t 'All Deleted'}}
{{/link-to}}
Expand Down

0 comments on commit e56027b

Please sign in to comment.