Browse Source

* show DID if no name

* hide no contacts when there are no contacts
* replace contact property with giver (? can you have another contact give you something ?)
cleanup-and-qr-code
Matthew Raymer 1 year ago
parent
commit
97569697f6
  1. 5
      src/views/HomeView.vue

5
src/views/HomeView.vue

@ -22,7 +22,7 @@
<h3
class="text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden"
>
{{ contact.name || "(no name)" }}
{{ contact.name || contact.did }}
</h3>
</li>
</ul>
@ -39,6 +39,7 @@
<!-- If there are no contacts, show this instead: -->
<div
class="rounded border border-dashed border-slate-300 bg-slate-100 px-4 py-3 text-center italic text-slate-500"
v-if="allContacts.length === 0"
>
(No contacts to show.)
</div>
@ -286,7 +287,7 @@ export default class HomeView extends Vue {
handleDialogResult(result) {
if (result.action === "confirm") {
return new Promise((resolve) => {
this.recordGive(result.contact?.did, result.description, result.hours);
this.recordGive(result.giver?.did, result.description, result.hours);
resolve();
});
} else {

Loading…
Cancel
Save