add favorite system and other small tweaks and fixes.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-02-27 16:47:57 +01:00
parent 48b439af4f
commit 16237a89a4
20 changed files with 147 additions and 39 deletions
+4 -1
View File
@@ -60,7 +60,7 @@ export class StufflogClient {
return data.project;
}
async listProjects({active, expiring}: ProjectFilter): Promise<ProjectResult[]> {
async listProjects({active, expiring, favorite}: ProjectFilter): Promise<ProjectResult[]> {
let queries = [];
if (active != null) {
queries.push(`active=${active}`);
@@ -68,6 +68,9 @@ export class StufflogClient {
if (expiring != null) {
queries.push(`expiring=${expiring}`);
}
if (favorite != null) {
queries.push(`favorite=${favorite}`)
}
const query = queries.length > 0 ? `?${queries.join("&")}` : "";