File tree Expand file tree Collapse file tree 4 files changed +52
-17
lines changed Expand file tree Collapse file tree 4 files changed +52
-17
lines changed Original file line number Diff line number Diff line change 1+ import classic from 'ember-classic-decorator' ;
2+ import Component from '@ember/component' ;
3+ import { action } from '@ember/object' ;
4+ import { tagName } from '@ember-decorators/component' ;
5+
6+ @classic
7+ @tagName ( '' )
8+ export default class GroupNav extends Component {
9+ @action
10+ refreshRoute ( ) {
11+ this . refresh ( ) ;
12+ }
13+ }
14+
Original file line number Diff line number Diff line change 1313 </a >
1414 </div >
1515 <TabbedNavigation >
16- {{ #if @createPage }}
17- <LinkTo @route =" groups.edit.settings" @model ={{ @group.id }} class =" item" >
18- {{ t ' Settings' }}
19- </LinkTo >
20- {{ #if @group.id }}
21- <LinkTo @route =" groups.edit.events" @model ={{ @group.id }} class =" item" >
22- {{ t ' Events' }}
23- </LinkTo >
24- {{ /if }}
25- {{ else }}
26- {{ #if @group.id }}
27- <LinkTo @route =" groups.edit.events" @model ={{ @group.id }} class =" item" >
16+ {{ #if @team }}
17+ <LinkTo @route =" groups.edit.events" @invokeAction ={{ action ' refreshRoute' }} @model ={{ @group.id }} class =" item" >
2818 {{ t ' Events' }}
29- </LinkTo >
30- {{ /if }}
31- <LinkTo @route =" groups.edit.followers" @model ={{ @group.id }} class =" item" >
19+ </LinkTo >
20+ <LinkTo @route =" groups.edit.followers" @invokeAction ={{ action ' refreshRoute' }} @model ={{ @group.id }} class =" item" >
3221 {{ t ' Followers' }}
3322 </LinkTo >
34- <LinkTo @route =" groups.edit.settings" @model ={{ @group.id }} class =" item" >
23+ <LinkTo @route =" groups.edit.settings" @invokeAction = {{ action ' refreshRoute ' }} @ model ={{ @group.id }} class =" item" >
3524 {{ t ' Settings' }}
3625 </LinkTo >
26+ <LinkTo @route =" groups.team" @invokeAction ={{ action ' refreshRoute' }} @model ={{ @group.id }} class =" item" >
27+ {{ t ' Team' }}
28+ </LinkTo >
29+ {{ else }}
30+ {{ #if @createPage }}
31+ <LinkTo @route =" groups.edit.settings" @model ={{ @group.id }} class =" item" >
32+ {{ t ' Settings' }}
33+ </LinkTo >
34+ {{ #if @group.id }}
35+ <LinkTo @route =" groups.edit.events" @model ={{ @group.id }} class =" item" >
36+ {{ t ' Events' }}
37+ </LinkTo >
38+ {{ /if }}
39+ {{ else }}
40+ {{ #if @group.id }}
41+ <LinkTo @route =" groups.edit.events" @model ={{ @group.id }} class =" item" >
42+ {{ t ' Events' }}
43+ </LinkTo >
44+ {{ /if }}
45+ <LinkTo @route =" groups.edit.followers" @model ={{ @group.id }} class =" item" >
46+ {{ t ' Followers' }}
47+ </LinkTo >
48+ <LinkTo @route =" groups.edit.settings" @model ={{ @group.id }} class =" item" >
49+ {{ t ' Settings' }}
50+ </LinkTo >
51+ <LinkTo @route =" groups.team" @model ={{ @group.id }} class =" item" >
52+ {{ t ' Team' }}
53+ </LinkTo >
54+ {{ /if }}
3755 {{ /if }}
3856 </TabbedNavigation >
3957 </div >
Original file line number Diff line number Diff line change 2222 <LinkTo @route =" groups.edit.settings" @invokeAction ={{ action ' refreshRoute' }} @model ={{ this.model.group.id }} class =" item" >
2323 {{ t ' Settings' }}
2424 </LinkTo >
25+ <LinkTo @route =" groups.team" @invokeAction ={{ action ' refreshRoute' }} @model ={{ this.model.group.id }} class =" item" >
26+ {{ t ' Team' }}
27+ </LinkTo >
2528 </TabbedNavigation >
2629 </div >
2730</div >
Original file line number Diff line number Diff line change 1- <GroupNav @group ={{ this.model.group }} />
1+ <GroupNav @team = {{ true }} @ group ={{ this.model.group }} />
22<div class =" ui sixteen wide column container mt-4" >
33<div class =" content d-flex" style =" align-items: center;" >
44 <div class =" header" >{{ t ' Team Members' }} </div >
You can’t perform that action at this time.
0 commit comments