forked from trent_larson/crowd-funder-for-time-pwa
order contacts by name & note outside network as "outside your network"
This commit is contained in:
@@ -373,8 +373,8 @@ export function didInfo(
|
|||||||
return myId
|
return myId
|
||||||
? `You${myId !== activeDid ? " (Alt ID)" : ""}`
|
? `You${myId !== activeDid ? " (Alt ID)" : ""}`
|
||||||
: isHiddenDid(did)
|
: isHiddenDid(did)
|
||||||
? "Someone Not In Network"
|
? "Someone Outside Your Network"
|
||||||
: "Someone Not In Contacts";
|
: "Someone Outside Contacts";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ export default class ContactGiftingView extends Vue {
|
|||||||
const settings = (await db.settings.get(MASTER_SETTINGS_KEY)) as Settings;
|
const settings = (await db.settings.get(MASTER_SETTINGS_KEY)) as Settings;
|
||||||
this.apiServer = settings?.apiServer || "";
|
this.apiServer = settings?.apiServer || "";
|
||||||
this.activeDid = settings?.activeDid || "";
|
this.activeDid = settings?.activeDid || "";
|
||||||
this.allContacts = await db.contacts.toArray();
|
this.allContacts = await db.contacts.orderBy("name").toArray();
|
||||||
|
|
||||||
localStorage.removeItem("projectId");
|
localStorage.removeItem("projectId");
|
||||||
|
|
||||||
|
|||||||
@@ -364,11 +364,7 @@ export default class ContactsView extends Vue {
|
|||||||
if (this.showGiveNumbers) {
|
if (this.showGiveNumbers) {
|
||||||
this.loadGives();
|
this.loadGives();
|
||||||
}
|
}
|
||||||
const allContacts = await db.contacts.toArray();
|
this.contacts = await db.contacts.orderBy("name").toArray();
|
||||||
this.contacts = R.sort(
|
|
||||||
(a: Contact, b) => (a.name || "").localeCompare(b.name || ""),
|
|
||||||
allContacts,
|
|
||||||
);
|
|
||||||
|
|
||||||
if (this.contactEndorserUrl) {
|
if (this.contactEndorserUrl) {
|
||||||
await this.addContactFromScan(this.contactEndorserUrl);
|
await this.addContactFromScan(this.contactEndorserUrl);
|
||||||
@@ -576,11 +572,7 @@ export default class ContactsView extends Vue {
|
|||||||
-1,
|
-1,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const allContacts = await db.contacts.toArray();
|
this.contacts = await db.contacts.orderBy("name").toArray();
|
||||||
this.contacts = R.sort(
|
|
||||||
(a: Contact, b) => (a.name || "").localeCompare(b.name || ""),
|
|
||||||
allContacts,
|
|
||||||
);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user