Merge pull request #157 from simple-login/show-user-info

Show user info
This commit is contained in:
Son Nguyen Kim
2022-08-02 17:15:43 +02:00
committed by GitHub
2 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"features": {
"loginWithProtonEnabled": false
"loginWithProtonEnabled": true
},
"buildTime": 1655462531232
}
+13 -1
View File
@@ -1,7 +1,9 @@
<template>
<div class="content">
<div class="p-3 container">
<p class="font-weight-bold align-self-center">App Settings</p>
<p class="font-weight-bold align-self-center">
App Settings ({{ userEmail }})
</p>
<table class="settings-list">
<tr>
@@ -84,6 +86,7 @@ export default {
positionSLButton: "right-inside",
reportURISLButton: "",
extension_version: "development",
userEmail: "",
};
},
async mounted() {
@@ -93,6 +96,15 @@ export default {
);
await this.setMailToUri();
this.extension_version = browser.runtime.getManifest().version;
// check api key
let userInfo = await callAPI(
API_ROUTE.GET_USER_INFO,
{},
{},
API_ON_ERR.TOAST
);
this.userEmail = userInfo.data.email;
},
methods: {
async handleToggleSLButton() {