forked from jsnbuchanan/crowd-funder-for-time-pwa
filter by selections (now all working), add cache for plans
This commit is contained in:
@@ -17,8 +17,8 @@ export type Settings = {
|
||||
activeDid?: string; // Active Decentralized ID
|
||||
apiServer?: string; // API server URL
|
||||
|
||||
filterFeedNearby?: string; // filter by nearby
|
||||
filterFeedContacts?: string; // filter by user contacts
|
||||
filterFeedByNearby?: boolean; // filter by nearby
|
||||
filterFeedByVisible?: boolean; // filter by visible users ie. anyone not hidden
|
||||
|
||||
firstName?: string; // User's first name
|
||||
isRegistered?: boolean;
|
||||
@@ -42,6 +42,10 @@ export type Settings = {
|
||||
webPushServer?: string; // Web Push server URL
|
||||
};
|
||||
|
||||
export function isAnyFeedFilterOn(settings: Settings): boolean {
|
||||
return !!(settings.filterFeedByNearby || settings.filterFeedByVisible);
|
||||
}
|
||||
|
||||
/**
|
||||
* Schema for the Settings table in the database.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user