Custom Record Sighting (#10839)

This commit is contained in:
Geeves
2021-01-25 20:10:58 +01:00
committed by GitHub
parent 485bf99653
commit a0477592fd
3 changed files with 9 additions and 2 deletions
@@ -141,6 +141,7 @@
VUEUI_SET_CHECK(data["allrecords"][R.id]["sex"], R.sex, ., data)
VUEUI_SET_CHECK(data["allrecords"][R.id]["age"], R.age, ., data)
VUEUI_SET_CHECK(data["allrecords"][R.id]["fingerprint"], R.fingerprint, ., data)
VUEUI_SET_CHECK(data["allrecords"][R.id]["has_notes"], (R.notes != "No notes found."), ., data)
if(R.medical)
VUEUI_SET_CHECK(data["allrecords"][R.id]["blood"], R.medical.blood_type, ., data)
VUEUI_SET_CHECK(data["allrecords"][R.id]["dna"], R.medical.blood_dna, ., data)
+6
View File
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- rscadd: "Record programs now display some lines next to the person if they have custom filled records."
+2 -2
View File
@@ -2,7 +2,7 @@
<div>
<vui-input-search style="display: block;" :input="records" v-model="filtered" :keys="['id', 'name', 'rank', 'sex', 'age', 'fingerprint', 'blood', 'dna']"/>
<div v-for="record in filtered" :key="record.id">
<vui-button :params="{ setactive: record.id }" @click="state.activeview = state.defaultview" push-state>{{ record.id }}: {{ record.name }} ({{ record.rank }})</vui-button>
<vui-button :params="{ setactive: record.id }" :icon="record.has_notes ? 'align-justify' : null" @click="state.activeview = state.defaultview" push-state>{{ record.id }}: {{ record.name }} ({{ record.rank }})</vui-button>
</div>
<vui-button class="newrecord" :v-if="(editable & 1) > 0" :params="{ newrecord: 1 }" @click="state.activeview = state.defaultview" push-state>New Record</vui-button>
</div>
@@ -29,4 +29,4 @@ export default {
.newrecord {
margin-top: 6px;
}
</style>
</style>