|
@ -15,9 +15,11 @@ |
|
|
> |
|
|
> |
|
|
<fa icon="circle-check" class="fa-fw text-blue-600 text-xl mr-3"></fa> |
|
|
<fa icon="circle-check" class="fa-fw text-blue-600 text-xl mr-3"></fa> |
|
|
<span> |
|
|
<span> |
|
|
<h2 class="text-xl font-semibold mb-0">Firstname Lastname</h2> |
|
|
<h2 class="text-xl font-semibold mb-0"> |
|
|
|
|
|
{{ firstName }} {{ lastName }} |
|
|
|
|
|
</h2> |
|
|
<div class="text-sm text-slate-500"> |
|
|
<div class="text-sm text-slate-500"> |
|
|
<b>ID:</b> <code>did:peer:kl45kj41lk451kl3</code> |
|
|
<b>ID:</b> <code>{{ activeDid }}</code> |
|
|
</div> |
|
|
</div> |
|
|
</span> |
|
|
</span> |
|
|
</a> |
|
|
</a> |
|
@ -58,7 +60,6 @@ |
|
|
</template> |
|
|
</template> |
|
|
<script lang="ts"> |
|
|
<script lang="ts"> |
|
|
import { Component, Vue } from "vue-facing-decorator"; |
|
|
import { Component, Vue } from "vue-facing-decorator"; |
|
|
|
|
|
|
|
|
import { AppString } from "@/constants/app"; |
|
|
import { AppString } from "@/constants/app"; |
|
|
import { db, accountsDB } from "@/db"; |
|
|
import { db, accountsDB } from "@/db"; |
|
|
import { AccountsSchema } from "@/db/tables/accounts"; |
|
|
import { AccountsSchema } from "@/db/tables/accounts"; |
|
@ -70,6 +71,9 @@ import QuickNav from "@/components/QuickNav"; |
|
|
export default class IdentitySwitcherView extends Vue { |
|
|
export default class IdentitySwitcherView extends Vue { |
|
|
Constants = AppString; |
|
|
Constants = AppString; |
|
|
private accounts: AccountsSchema; |
|
|
private accounts: AccountsSchema; |
|
|
|
|
|
public activeDid; |
|
|
|
|
|
public firstName; |
|
|
|
|
|
public lastName; |
|
|
|
|
|
|
|
|
async created() { |
|
|
async created() { |
|
|
try { |
|
|
try { |
|
@ -78,8 +82,8 @@ export default class IdentitySwitcherView extends Vue { |
|
|
this.activeDid = settings?.activeDid || ""; |
|
|
this.activeDid = settings?.activeDid || ""; |
|
|
this.apiServer = settings?.apiServer || ""; |
|
|
this.apiServer = settings?.apiServer || ""; |
|
|
this.apiServerInput = settings?.apiServer || ""; |
|
|
this.apiServerInput = settings?.apiServer || ""; |
|
|
this.firstName = settings?.firstName || ""; |
|
|
this.firstName = settings?.firstName || "No"; |
|
|
this.lastName = settings?.lastName || ""; |
|
|
this.lastName = settings?.lastName || "Name"; |
|
|
this.showContactGives = !!settings?.showContactGivesInline; |
|
|
this.showContactGives = !!settings?.showContactGivesInline; |
|
|
|
|
|
|
|
|
const identity = await this.getIdentity(this.activeDid); |
|
|
const identity = await this.getIdentity(this.activeDid); |
|
|