|
@ -18,6 +18,16 @@ |
|
|
<h1 id="ViewHeading" class="text-4xl text-center font-light pt-4"> |
|
|
<h1 id="ViewHeading" class="text-4xl text-center font-light pt-4"> |
|
|
Your Contact Info |
|
|
Your Contact Info |
|
|
</h1> |
|
|
</h1> |
|
|
|
|
|
<p v-if="!givenName" class="text-center mt-2"> |
|
|
|
|
|
<span class="text-red">Beware!</span> |
|
|
|
|
|
You aren't sharing your name, so hurry and |
|
|
|
|
|
<router-link |
|
|
|
|
|
:to="{ name: 'new-edit-account' }" |
|
|
|
|
|
class="bg-blue-500 text-white px-1.5 py-1 rounded-md" |
|
|
|
|
|
> |
|
|
|
|
|
go here to set it for them. |
|
|
|
|
|
</router-link> |
|
|
|
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div @click="onCopyToClipboard()" v-if="activeDid"> |
|
|
<div @click="onCopyToClipboard()" v-if="activeDid"> |
|
@ -87,6 +97,7 @@ export default class ContactQRScanShow extends Vue { |
|
|
|
|
|
|
|
|
activeDid = ""; |
|
|
activeDid = ""; |
|
|
apiServer = ""; |
|
|
apiServer = ""; |
|
|
|
|
|
givenName = ""; |
|
|
qrValue = ""; |
|
|
qrValue = ""; |
|
|
|
|
|
|
|
|
public async getIdentity(activeDid: string) { |
|
|
public async getIdentity(activeDid: string) { |
|
@ -111,6 +122,7 @@ export default class ContactQRScanShow extends Vue { |
|
|
const settings = await db.settings.get(MASTER_SETTINGS_KEY); |
|
|
const settings = await db.settings.get(MASTER_SETTINGS_KEY); |
|
|
this.activeDid = settings?.activeDid || ""; |
|
|
this.activeDid = settings?.activeDid || ""; |
|
|
this.apiServer = settings?.apiServer || ""; |
|
|
this.apiServer = settings?.apiServer || ""; |
|
|
|
|
|
this.givenName = settings?.firstName || ""; |
|
|
|
|
|
|
|
|
await accountsDB.open(); |
|
|
await accountsDB.open(); |
|
|
const accounts = await accountsDB.accounts.toArray(); |
|
|
const accounts = await accountsDB.accounts.toArray(); |
|
|