Skip to content

Commit 2138c52

Browse files
authored
Add hasProject boolean to draft-registrations (#1137)
1 parent 4ef54cd commit 2138c52

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/models/draft-registration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export default class DraftRegistrationModel extends OsfModel {
3737
@attr('fixstringarray') tags!: string[];
3838
@attr('node-license') nodeLicense!: NodeLicense | null;
3939
@attr('node-category') category!: NodeCategory;
40+
@attr('boolean') hasProject!: boolean;
4041

4142
@belongsTo('node', { inverse: 'draftRegistrations' })
4243
branchedFrom!: DS.PromiseObject<NodeModel> & NodeModel;

mirage/factories/draft-registration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ export default Factory.extend<DraftRegistration & DraftRegistrationTraits>({
6565

6666
category: NodeCategory.Uncategorized,
6767

68+
hasProject: true,
69+
6870
withRegistrationMetadata: trait<DraftRegistration>({
6971
afterCreate(draftRegistration) {
7072
draftRegistration.update({

0 commit comments

Comments
 (0)