• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CenterForOpenScience / ember-osf-web / 8572628743

05 Apr 2024 04:09PM UTC coverage: 65.858% (-2.3%) from 68.147%
8572628743

Pull #2185

github

web-flow
Merge 8cf5772d8 into f8c2d0077
Pull Request #2185: [DRAFT] [ENG-5346] Added the public preregistration to the author assertions page

2642 of 4314 branches covered (61.24%)

Branch coverage included in aggregate %.

14 of 288 new or added lines in 23 files covered. (4.86%)

20 existing lines in 4 files now uncovered.

6156 of 9045 relevant lines covered (68.06%)

217.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/preprints/-components/submit/component.ts
1
import Component from '@glimmer/component';
2
import PreprintStateMachine, { PreprintStatusTypeEnum } from
3
    'ember-osf-web/preprints/-components/submit/preprint-state-machine/component';
4

5
/**
6
 * The Submit Args
7
 */
8
interface SubmitArgs {
9
    manager: PreprintStateMachine;
10
}
11

12
/**
13
 * The Submit component
14
 */
15
export default class Submit extends Component<SubmitArgs>{
16
    public get isTitleAndFileActive(): boolean {
NEW
17
        return this.isSelected(PreprintStatusTypeEnum.titleAndFile);
×
18
    }
19

20
    public get isMetadataActive(): boolean {
NEW
21
        return this.isSelected(PreprintStatusTypeEnum.metadata);
×
22
    }
23

24
    public get isAuthorAssertionsActive(): boolean {
NEW
25
        return this.isSelected(PreprintStatusTypeEnum.authorAssertions);
×
26
    }
27

28
    public get isSupplementsActive(): boolean {
NEW
29
        return this.isSelected(PreprintStatusTypeEnum.supplements);
×
30
    }
31

32
    public get isReviewActive(): boolean {
NEW
33
        return this.isSelected(PreprintStatusTypeEnum.review);
×
34
    }
35

36
    private isSelected(type: string): boolean {
NEW
37
        return this.args.manager.isSelected(type);
×
38
    }
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc