|
8 | 8 | > |
9 | 9 | <div class='row'> |
10 | 10 | <div class='col-xs-9 col-sm-8'> |
11 | | - <BsTab |
| 11 | + <AriaTabs |
12 | 12 | data-analytics-scope='Registrations Tab' |
13 | | - @activeId={{this.activeTab}} |
14 | | - @onChange={{action this.changeTab}} |
| 13 | + @defaultIndex={{0}} |
| 14 | + @onSelect={{action this.changeTab}} |
| 15 | + local-class='Tabs' |
15 | 16 | as |tab| |
16 | 17 | > |
17 | | - <tab.pane |
18 | | - @id='registrations' |
19 | | - @title={{t 'node.registrations.registrations'}} |
| 18 | + <tab.tabList |
| 19 | + local-class='TabList' |
| 20 | + as |tablist| |
20 | 21 | > |
| 22 | + <tablist.tab>{{t 'node.registrations.registrations'}}</tablist.tab> |
| 23 | + {{#if this.node.userHasReadPermission}} |
| 24 | + <tablist.tab data-test-drafts-tab> |
| 25 | + {{t 'node.registrations.draft_registrations'}} |
| 26 | + </tablist.tab> |
| 27 | + {{/if}} |
| 28 | + </tab.tabList> |
| 29 | + <tab.tabPanel> |
21 | 30 | <div class='row' local-class='RegistrationsPane' data-test-registrations-pane> |
22 | 31 | <NodeList |
23 | 32 | @modelTaskInstance={{this.model.taskInstance}} |
|
37 | 46 | {{/if}} |
38 | 47 | <p> |
39 | 48 | {{t 'node.registrations.learn_more' |
40 | | - learnMoreLink='https://openscience.zendesk.com/hc/en-us/articles/360019930893' |
| 49 | + learnMoreLink='https://help.osf.io/hc/en-us/categories/360001550953-Registrations' |
41 | 50 | htmlSafe=true |
42 | 51 | }} |
43 | 52 | </p> |
44 | 53 | </nl.empty> |
45 | 54 | </NodeList> |
46 | 55 | </div> |
47 | | - </tab.pane> |
| 56 | + </tab.tabPanel> |
48 | 57 | {{#if this.node.userHasReadPermission}} |
49 | | - <tab.pane |
50 | | - data-analytics-scope='Drafts tab' |
51 | | - @id='drafts' |
52 | | - @title={{t 'node.registrations.draft_registrations'}} |
53 | | - > |
| 58 | + <tab.tabPanel data-analytics-scope='Drafts tab'> |
54 | 59 | <div class='row' local-class='RegistrationsPane' data-test-draft-registrations-pane> |
55 | 60 | <PaginatedList::HasMany |
56 | 61 | data-analytics-scope='Project Draft Registrations' |
|
74 | 79 | {{/if}} |
75 | 80 | <p> |
76 | 81 | {{t 'node.registrations.learn_more' |
77 | | - learnMoreLink='https://openscience.zendesk.com/hc/en-us/articles/360019930893' |
| 82 | + learnMoreLink='https://help.osf.io/hc/en-us/categories/360001550953-Registrations' |
78 | 83 | htmlSafe=true |
79 | 84 | }} |
80 | 85 | </p> |
81 | 86 | </list.empty> |
82 | 87 | </PaginatedList::HasMany> |
83 | 88 | </div> |
84 | | - </tab.pane> |
| 89 | + </tab.tabPanel> |
85 | 90 | {{/if}} |
86 | | - </BsTab> |
| 91 | + </AriaTabs> |
87 | 92 | </div> |
88 | 93 | {{#if this.node.userHasAdminPermission}} |
89 | 94 | <div class='col-xs-3 col-sm-4'> |
|
0 commit comments