forked from jsnbuchanan/crowd-funder-for-time-pwa
make member view available to onboard meeting organizer and reorganize buttons
This commit is contained in:
@@ -219,7 +219,7 @@
|
||||
</router-link>
|
||||
|
||||
<span class="ml-4 text-sm overflow-hidden">{{
|
||||
shortDid(contact.did)
|
||||
libsUtil.shortDid(contact.did)
|
||||
}}</span>
|
||||
</div>
|
||||
<div class="ml-4 text-sm">
|
||||
@@ -1373,21 +1373,6 @@ export default class ContactsView extends Vue {
|
||||
});
|
||||
}
|
||||
|
||||
private shortDid(did: string) {
|
||||
if (did.startsWith("did:peer:")) {
|
||||
return (
|
||||
did.substring(0, "did:peer:".length + 2) +
|
||||
"..." +
|
||||
did.substring("did:peer:".length + 18, "did:peer:".length + 25) +
|
||||
"..."
|
||||
);
|
||||
} else if (did.startsWith("did:ethr:")) {
|
||||
return did.substring(0, "did:ethr:".length + 9) + "...";
|
||||
} else {
|
||||
return did.substring(0, did.indexOf(":", 4) + 7) + "...";
|
||||
}
|
||||
}
|
||||
|
||||
private showCopySelectionsInfo() {
|
||||
this.$notify(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user