diff --git a/package.json b/package.json index 5ef417d..11b7f81 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kickstart-for-time-pwa", - "version": "0.1.2", + "version": "0.1.3", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/project.task.yaml b/project.task.yaml index ce7734d..8a7b276 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -6,8 +6,6 @@ tasks: - 40 notifications : - push, where we trigger a ServiceWorker(?) in the app to reach out and check for new data assignee:matthew -- .1 test - make sure that a registration failure (including network failure) doesn't give a success message (which may have happened during board meeting) - - .1 don't allow to even see the claim actions if they're not registered - 01 Replace Gifted/Give in ContactsView with GiftedDialog assignee:matthew @@ -57,6 +55,7 @@ tasks: - .5 Display a more appealing confirmation on the map when erasing the marker assignee-group:ui - .5 make a VC details page - .1 Add units or different icon to the coins (to distinguish $, BTC, hours, etc) +- .1 remove firstName (& lastName) from localStorage - contacts v+ : - 01 Import all the non-sensitive data (ie. contacts & settings). diff --git a/src/db/tables/settings.ts b/src/db/tables/settings.ts index 8298dfe..dac9094 100644 --- a/src/db/tables/settings.ts +++ b/src/db/tables/settings.ts @@ -12,7 +12,7 @@ export type Settings = { activeDid?: string; apiServer?: string; firstName?: string; - lastName?: string; + lastName?: string; // deprecated, pre v 0.1.3 lastViewedClaimId?: string; searchBoxes?: Array<{ name: string; diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index c15141b..1ef6d8a 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -52,7 +52,7 @@
{{ activeDid }}
@@ -90,8 +90,7 @@ export default class IdentitySwitcherView extends Vue {
public activeDid = "";
public apiServer = "";
public apiServerInput = "";
- public firstName = "";
- public lastName = "";
+ public givenName = "";
public otherIdentities: Array<{ did: string }> = [];
public showContactGives = false;
@@ -101,7 +100,7 @@ export default class IdentitySwitcherView extends Vue {
.where("did")
.equals(activeDid)
.first();
- const identity = JSON.parse(account?.identity || "null");
+ const identity = JSON.parse((account?.identity as string) || "null");
return identity;
}
@@ -109,11 +108,12 @@ export default class IdentitySwitcherView extends Vue {
try {
await db.open();
const settings = await db.settings.get(MASTER_SETTINGS_KEY);
- this.activeDid = settings?.activeDid || "";
- this.apiServer = settings?.apiServer || "";
- this.apiServerInput = settings?.apiServer || "";
- this.firstName = settings?.firstName || "No";
- this.lastName = settings?.lastName || "Name";
+ this.activeDid = (settings?.activeDid as string) || "";
+ this.apiServer = (settings?.apiServer as string) || "";
+ this.apiServerInput = (settings?.apiServer as string) || "";
+ this.givenName =
+ ((settings?.firstName as string) || "") +
+ (settings?.lastName ? ` ${settings.lastName}` : ""); // deprecated, pre v 0.1.3
this.showContactGives = !!settings?.showContactGivesInline;
const identity = await this.getIdentity(this.activeDid);
diff --git a/src/views/NewEditAccountView.vue b/src/views/NewEditAccountView.vue
index 0fb5a7c..032937f 100644
--- a/src/views/NewEditAccountView.vue
+++ b/src/views/NewEditAccountView.vue
@@ -16,15 +16,9 @@
-