mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
Custom Record Sighting (#10839)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,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>
|
||||
|
||||
Reference in New Issue
Block a user