forked from trent_larson/crowd-funder-for-time-pwa
show/hide given totals based on setting rather than URL parameter
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
- .5 Add page to show seed.
|
||||
- 01 Provide a way to import the non-sensitive data.
|
||||
- 01 Provide way to share your contact info.
|
||||
- 01 register others
|
||||
- .2 move all "identity" references to temporary account access
|
||||
- .1 remove "scan new contact"
|
||||
|
||||
- contacts v+ :
|
||||
|
||||
@@ -135,13 +135,14 @@
|
||||
import { AxiosError } from "axios";
|
||||
import * as didJwt from "did-jwt";
|
||||
import * as R from "ramda";
|
||||
import { IIdentifier } from "@veramo/core";
|
||||
import { Options, Vue } from "vue-class-component";
|
||||
|
||||
import { AppString } from "@/constants/app";
|
||||
import { accessToken, SimpleSigner } from "@/libs/crypto";
|
||||
import { IIdentifier } from "@veramo/core";
|
||||
import { accountsDB, db } from "../db";
|
||||
import { Contact } from "../db/tables/contacts";
|
||||
import { accountsDB, db } from "@/db";
|
||||
import { Contact } from "@/db/tables/contacts";
|
||||
import { MASTER_SETTINGS_KEY } from "@/db/tables/settings";
|
||||
|
||||
export interface GiveVerifiableCredential {
|
||||
"@context": string;
|
||||
@@ -174,13 +175,12 @@ export default class ContactsView extends Vue {
|
||||
this.identity = JSON.parse(accounts[0].identity);
|
||||
|
||||
await db.open();
|
||||
this.contacts = await db.contacts.toArray();
|
||||
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
this.showGiveTotals = params.get("showGiveTotals") == "true";
|
||||
const settings = await db.settings.get(MASTER_SETTINGS_KEY);
|
||||
this.showGiveTotals = !!settings?.showContactGivesInline;
|
||||
if (this.showGiveTotals) {
|
||||
this.loadGives();
|
||||
}
|
||||
this.contacts = await db.contacts.toArray();
|
||||
}
|
||||
|
||||
async onClickNewContact(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user