Skip to content

Commit 7e49aaa

Browse files
bpowsetiadha-unc
authored andcommitted
Finish replacing client-side group-type eval with server-based attributes
replaces the commit in #105
1 parent d8efcf4 commit 7e49aaa

4 files changed

Lines changed: 11 additions & 19 deletions

File tree

resources/js/components/expert_panels/AttestationNhgri.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default {
2424
get () {
2525
return this.$store.getters['groups/currentItemOrNew'];
2626
},
27-
set (value) {
27+
set (value) {
2828
this.$store.commit('groups/addItem', value);
2929
}
3030
},
@@ -38,7 +38,7 @@ export default {
3838
} else {
3939
this.group.expert_panel.nhgri_attestation_date = null;
4040
}
41-
this.$emit('update');
41+
this.$emit('update');
4242
}
4343
},
4444
checkboxLabel () {
@@ -66,8 +66,8 @@ export default {
6666
</script>
6767
<template>
6868
<div>
69-
<p v-if="group.isVcep()">
70-
Curated variants and genes are expected to be approved and posted for the community as soon as possible as described in Section 2.4 of the <vcep-protocol-link />.
69+
<p v-if="group.is_vcep">
70+
Curated variants and genes are expected to be approved and posted for the community as soon as possible as described in Section 2.4 of the <vcep-protocol-link />.
7171
Note that upon approval, a VCEP must finalize their set of variants for upload to the ClinGen Evidence Repository within 30 days.
7272
</p>
7373
<p v-if="group.is_gcep">
@@ -76,10 +76,10 @@ export default {
7676

7777
<p class="my-4">
7878
<input-row label="" :vertical="true">
79-
<checkbox
80-
id="nhgri-checkbox"
81-
v-model="attestation"
82-
:disabled="disabled"
79+
<checkbox
80+
id="nhgri-checkbox"
81+
v-model="attestation"
82+
:disabled="disabled"
8383
:label="checkboxLabel"
8484
/>
8585
</input-row>
@@ -94,4 +94,4 @@ export default {
9494
<em>It is expected that, whenever possible, Expert Panel manuscripts will be pre-published (e.g. medRXiv) . If the authors do not anticipate submitting their manuscript to a prepublication resource they must provide a written justification.</em>
9595
</p>
9696
</div>
97-
</template>
97+
</template>

resources/js/components/groups/MemberForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export default {
401401
</div>
402402
<transition name="fade-down">
403403
<div
404-
v-if="newMember.hasRole('biocurator') && group.isVcep()"
404+
v-if="newMember.hasRole('biocurator') && group.is_vcep"
405405
class="border-t mt-2 pt-2 pl-2"
406406
>
407407
<h4>Training</h4>

resources/js/components/log_entries/ActivityLogEntryForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
:errors="errors.log_date"
9797
type="date"
9898
/>
99-
<StepInput v-if="group.isVcep()" v-model="newEntry.step" :errors="errors.step" />
99+
<StepInput v-if="group.is_vcep" v-model="newEntry.step" :errors="errors.step" />
100100
<input-row label="Entry" :errors="errors.entry">
101101
<RichTextEditor v-model="newEntry.entry" />
102102
</input-row>

resources/js/domain/group.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,6 @@ class Group extends Entity {
190190
return this.attributes.group_type_id === configs.groups.types.cdwg.id;
191191
}
192192

193-
isVcep() {
194-
return this.is_vcep;
195-
}
196-
197-
isGcep() {
198-
return this.is_gcep;
199-
}
200-
201193
documentsOfType(docTypeId) {
202194
return this.documents.filter(d => d.document_type_id === docTypeId)
203195
}

0 commit comments

Comments
 (0)