forked from jsnbuchanan/crowd-funder-for-time-pwa
Better handling of No-name and Unnamed entities
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
class="text-blue-500 text-5xl mb-1"
|
class="text-blue-500 text-5xl mb-1"
|
||||||
/>
|
/>
|
||||||
<h3
|
<h3
|
||||||
class="text-xs text-slate-500 font-medium italic text-ellipsis whitespace-nowrap overflow-hidden"
|
class="text-xs text-slate-400 font-medium italic text-ellipsis whitespace-nowrap overflow-hidden"
|
||||||
>
|
>
|
||||||
Show All
|
Show All
|
||||||
</h3>
|
</h3>
|
||||||
@@ -118,9 +118,9 @@
|
|||||||
class="text-slate-400 text-5xl mb-1"
|
class="text-slate-400 text-5xl mb-1"
|
||||||
/>
|
/>
|
||||||
<h3
|
<h3
|
||||||
class="text-xs text-slate-500 font-medium italic text-ellipsis whitespace-nowrap overflow-hidden"
|
class="text-xs text-slate-400 font-medium italic text-ellipsis whitespace-nowrap overflow-hidden"
|
||||||
>
|
>
|
||||||
Unnamed
|
(Unnamed)
|
||||||
</h3>
|
</h3>
|
||||||
</li>
|
</li>
|
||||||
<li
|
<li
|
||||||
@@ -159,11 +159,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<h3
|
<h3
|
||||||
:class="{
|
:class="{
|
||||||
'text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden': !wouldCreateConflict(contact.did),
|
'text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden': !wouldCreateConflict(contact.did) && contact.name,
|
||||||
'text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden text-slate-400': wouldCreateConflict(contact.did)
|
'text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden text-slate-400 italic': !contact.name,
|
||||||
|
'text-xs font-medium text-ellipsis whitespace-nowrap overflow-hidden text-slate-400': wouldCreateConflict(contact.did) && contact.name
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{ contact.name || contact.did }}
|
{{ contact.name || "(No name)" }}
|
||||||
</h3>
|
</h3>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="allContacts.length > 0" class="cursor-pointer">
|
<li v-if="allContacts.length > 0" class="cursor-pointer">
|
||||||
@@ -201,7 +202,7 @@
|
|||||||
class="text-blue-500 text-5xl mb-1"
|
class="text-blue-500 text-5xl mb-1"
|
||||||
/>
|
/>
|
||||||
<h3
|
<h3
|
||||||
class="text-xs text-slate-500 font-medium italic text-ellipsis whitespace-nowrap overflow-hidden"
|
class="text-xs text-slate-400 font-medium italic text-ellipsis whitespace-nowrap overflow-hidden"
|
||||||
>
|
>
|
||||||
Show All
|
Show All
|
||||||
</h3>
|
</h3>
|
||||||
@@ -263,16 +264,22 @@
|
|||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
<h3
|
<h3
|
||||||
v-if="giver?.name"
|
v-if="giver?.name && giver.name !== giver.did"
|
||||||
class="font-semibold truncate"
|
class="font-semibold truncate"
|
||||||
>
|
>
|
||||||
{{ giver.name }}
|
{{ giver.name }}
|
||||||
</h3>
|
</h3>
|
||||||
<h3
|
<h3
|
||||||
v-else
|
v-if="giver?.name && giver.name === giver.did"
|
||||||
class="font-semibold truncate text-slate-400 italic"
|
class="font-semibold truncate text-slate-400 italic"
|
||||||
>
|
>
|
||||||
Unnamed
|
(No name)
|
||||||
|
</h3>
|
||||||
|
<h3
|
||||||
|
v-else-if="!giver?.name"
|
||||||
|
class="font-semibold truncate text-slate-400 italic"
|
||||||
|
>
|
||||||
|
(Unnamed)
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -317,16 +324,22 @@
|
|||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
<h3
|
<h3
|
||||||
v-if="giver?.name"
|
v-if="giver?.name && giver.name !== giver.did"
|
||||||
class="font-semibold truncate"
|
class="font-semibold truncate"
|
||||||
>
|
>
|
||||||
{{ giver.name }}
|
{{ giver.name }}
|
||||||
</h3>
|
</h3>
|
||||||
<h3
|
<h3
|
||||||
v-else
|
v-if="giver?.name && giver.name === giver.did"
|
||||||
class="font-semibold truncate text-slate-400 italic"
|
class="font-semibold truncate text-slate-400 italic"
|
||||||
>
|
>
|
||||||
Unnamed
|
(No name)
|
||||||
|
</h3>
|
||||||
|
<h3
|
||||||
|
v-else-if="!giver?.name"
|
||||||
|
class="font-semibold truncate text-slate-400 italic"
|
||||||
|
>
|
||||||
|
(Unnamed)
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -359,16 +372,22 @@
|
|||||||
Given to:
|
Given to:
|
||||||
</p>
|
</p>
|
||||||
<h3
|
<h3
|
||||||
v-if="receiver?.name"
|
v-if="receiver?.name && receiver.name !== receiver.did"
|
||||||
class="font-semibold truncate"
|
class="font-semibold truncate"
|
||||||
>
|
>
|
||||||
{{ receiver.name }}
|
{{ receiver.name }}
|
||||||
</h3>
|
</h3>
|
||||||
<h3
|
<h3
|
||||||
v-else
|
v-if="receiver?.name && receiver.name === receiver.did"
|
||||||
class="font-semibold truncate text-slate-400 italic"
|
class="font-semibold truncate text-slate-400 italic"
|
||||||
>
|
>
|
||||||
Unnamed
|
(No name)
|
||||||
|
</h3>
|
||||||
|
<h3
|
||||||
|
v-else-if="!receiver?.name"
|
||||||
|
class="font-semibold truncate text-slate-400 italic"
|
||||||
|
>
|
||||||
|
(Unnamed)
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -404,7 +423,7 @@
|
|||||||
v-else
|
v-else
|
||||||
class="font-semibold truncate text-slate-400 italic"
|
class="font-semibold truncate text-slate-400 italic"
|
||||||
>
|
>
|
||||||
Unnamed
|
(Unnamed)
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user